Go Patterns go-design-pattern
Links
All posts
Faster Multi-Platform Builds: Dockerfile Cross-Compilation Guide method docker buildx create --use FROM --platform=linux/amd64 debian / FROM --platform=$BUILDPLATFORM debian variables BUILDPLATFORM — matches …
How to deal with a 50GB large csv file in r language? question all <- read.csv.ffdf( file="<path of large file>", sep = ",", header=TRUE, VERBOSE=TRUE, first.rows=10000, next.rows=50000, ) answer …
15 Rules of Channels and Their Implementation Operation rules Operation nil Closed channel Open buffered channel Open unbuffered channel Close panic panic Close succeeds; buffered values can be read. After …
Create macOS DMG and Bootable ISO dmg AppStore ==> search ‘install macos’ ==> get installer ==> du -sh /Applications/Install\ macOS\ Mojave.app/ Disk Utility ==> File ==> New Image ==> Blank Image Size: …
Synology: Your NAS RAM Details at a Glance step1 Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script step2 General: In the Task field type in RAM Details. Uncheck the “Enabled” …
Zsh Config Files and Priority Zsh environment variable config files: .zprofile .zlogin .zshrc .zshenv .zlogout .zshrc is used for overall shell customization .zprofile and .zlogin are similar. They both set …
My Productivity Mac Settings and Apps Control dark mode per app https://nightowlapp.co/ brew install --cask nightowl Control external monitor brightness with the keyboard - MonitorControl …
Some Software Design Principles 1. Don’t Repeat Yourself (DRY) 2. Keep It Simple, Stupid (KISS) Making something complex is easy, but making something complex simple is difficult. 3. Program to an interface, …
On High Availability Systems Item / Mechanism Backups M/S MM 2PC Paxos Consistency Weak Eventual Eventual Strong Strong Transactions No Full Local Full Full Latency Low Low Low High High Throughput High High …
Everything About MTU and MSS
Pitfalls When Parsing Binary Data in Go for { buf := make([]byte, bufSize) n, err := r.Read(buf) if err == io.EOF { return } else if err != nil { aerr.Store(err) return } ch <- buf[:n] } The code returns …