Command Palette
Search for a command to run...
Comments
Join the discussionNo comments yet. Be the first to comment.
More from this blog
Linux Retains the Size of the Deleted File
While interning, I once had an application that logged every request and response to the Linux file system. That app easily fills up our disks due to traffic. I got confused when I tried to delete log files because disk usage didn’t decrease even aft...
Greatest Common Divisor and Least Common Multiplier
I only rewrite what was written on my pastebin package main import "fmt" func findGCD(a, b int) int { if b == 0 { return a } return findGCD(b, a%b) } func findLCM(a, b int) int { return a * b / findGCD(a, b) } func main() { fmt.Pri...
Sieve Of Eratosthenes
I don’t do anything except converting the pseudocode from wiki into Golang code package main import "fmt" func fetchFirstPrimeNumbersOf(n int) []int { var result []int // an integer n > 1 if n <= 1 { return result } // let A be an a...
Contextual Logging In Go
I’ve just woke up and somehow I remember that when I created taboo to trace the error log. And then I think, would it be better if I pass the logger instead of the error log itself? As the context passed, it will contain a sub-logger that has x-reque...
Asymmetric Cryptography: Signing VS Encrypting
When we talk about crypto-something, we need to talk about Alice and Bob acting as actors in the example section. I hope you don’t get bored with them as I will use them as examples too. Here, Alice and Bob will use RSA for the asymmetric key, SHA256...