Cleanup git and docker Disk Usage
Sometimes our cloned repository became so freakin large, for example golang's google.golang.org/api, currently mine consume about 1.1GB. We could compress it using garbage collection parameter:git gc...
View ArticleMachine Learning Toolkits
There's a bunch of machine learning toolkit either for supervised (labelled), unsupervised (for clustering), semi-supervised, or reinforced learning (reward and punishmed). Most of them written (or...
View ArticleTarantool: In-memory SQL Hybrid Database
Tarantool is an awesome product that I've evaded for a while (because it's using Lua), but after a long time seeking a awesome free silver-bullet database (2016's benchmark here), I think only...
View ArticleString Associative Array and CombSort Benchmark 2020 Edition
5 Years later since last string associative benchmark and lesser string associative benchmark, numeric comb sort benchmark and string comb sort benchmark, this year's using newer processor: AMD Ryzen 3...
View ArticleGolang Serialization Benchmark 2020 Edition
These benchmark results taken from electhomas' repo, have a quite interesting result (new serialization formats). Let's see how much serialization cost, the...
View ArticleLearn Python in X minutes
Too bad that Python become increasingly more popular now, the fastest implementation (PyPy which nearly as fast as Dart > Java and TCC > Crystal and NodeJS > Nim > Go) somehow not fully...
View ArticleGOPS: Trace your Golang service with ease
GoPS is one alternative (also made by Google, other than pprof) to measure, trace or diagnose the performance and memory usage your Go-powered service/long-lived program. The usage is very easy, you...
View ArticlePyroscope: Continuous Tracing in Go, Python, or Ruby
Recently I stumbled upon slow library/function problem and don't know chich part that causes it, and found out that there's a easy way to trace either Go, Ruby, or Python code using Pyroscope. The...
View ArticleKubernetes GUI
There's various GUI for Kubernetes that I've found:The default kubernetes dashboardOctant IntelliJ Service Tool Window (View > Tool Window > Services, Alt+8)IntelliJ Cloud Code (most features...
View ArticleBenchmarking Disks on VPS
Are you sure you are getting SSD when you rent a VPS? Here's how to make suresudo apt install fiofio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test...
View ArticleEasy Tarantool and ClickHouse Replication Setup
These two are currently my favorite databases because of their speed and features, Tarantool (200K tps) for OLTP, and ClickHouse (600K insert/s, 100 qps) for OLAP. Today we will learn how to setup a...
View ArticlePrime Benchmark
So, yesterday I didn't touch my PC to do a prime number benchmark. And Here's the result for single threaded (only showing fastest implementation of each language) and...
View ArticleMock vs Fake and Classical Testing
Motivation of this article is to promote less painful way of testing, structuring codes, and less broken test when changing logic/implementation details (only changing the logic not changing the...
View ArticleDockerfile Template (React, Express, Vue, Nest, Angular, GoFiber, Svelte,...
These are docker template for deploying common applications (either using Kubernetes, Nomad, or locally using docker-compose), this post are copied mostly from scalablescripts youtube channel and...
View ArticleYou don't need Kubernetes
Everyone using kubernetes, even they don't have to, which adds additional complexity. In this article we will discuss when we need Kubernetes, and when we don't, and what's the alternative?When you...
View ArticleDatabase Patterns of Microservices
When you need microservice? When you have multiple business domain (not domain of DNS), that are best to be splitted and managed separately. If your buiness domain so small and the team is small, it's...
View ArticleRemove Secrets from git Repository
Sometimes you accidentally create a commit and push a sensitive data to the git server, here's how you can remove the secrets from the git repo using https://rtyley.github.io/bfg-repo-cleaner/clone a...
View ArticleAgainst Golang Interface{Method}-abuse/pollution
As you already know, after doing a lot of maintenance work of other people's code, I don't like to follow blindly so called "best practice" or popular practice that are proven painful in the long run...
View ArticleDatabases with Automatic Rebalance Benchmark
Automatic rebalance/repair/self-healing (we can remove or add new node, and it will distribute the data and rebalance itself, data are replicated to more than 1 node). Previous benchmark doesn't really...
View ArticleAlternative Strategy for Dependency Injection (lambda-returning vs...
There's some common strategy for injecting dependency (one or sets of function) using interface, something like this:type Foo interface{ Bla() string }type RealAyaya struct {}func(a *RealAyaya) Bla()...
View Article