Posts
Exploring Dapr-Introduction, Experiences, and Live Demo
I was very excited to be invited to give a talk about dapr. Below is my talk. My demo in the session is not successful as things in kubernetes and dapr field are changing very fast. My lab environment didn’t work as expected. Finially I make it work today, I share it here below.
Here is my talk at 18th July from time 2235 in below video.
Prerequisites kubectl, kind, docker, dapr, git, vscode in WSL
Posts
Charge Back business process
A typical steps involved in the issuer response process for a card authorization, a simplified description is as following.
Receive Authorization Request: The card issuer system receives the authorization request from the merchant or payment processor.
Card Validation: The issuer system validates the card details provided in the request, including the card number, expiration date, and CVV/CVC.
Account Verification: The issuer system verifies the cardholder’s account details, such as account status, available funds, and credit limit (if applicable).
Posts
Powerpoint vs UML
I think I am a big fan of textual UML after I learnt it from thoughtworks techradar. I doubted it after my recent experience.
In the past 2 months I spent long periods of time to think of how to make my Powerpoint slides pass my boss Lim Chee Kiam's standard. I thought deeply about that. One moment, I asked myself why Grady Booch, Ivar Jacobson, and James Rumbaugh didn’t come out a diagram which cater to dynamic(behaviour) and static (structure) diagrams, then I realized it will be a mess if those two things are put toghere.
Posts
My choice of personal knowledge management (PKM): logseq
I chose logseq as my PKM I was overloaded with information in the past several weeks. I sought many ways to overcome it. One choice I made is using logseq as PKM.
why? There are several open source or freeware verion of PKM. Why did I choose logseq?
logseq is clojure based. I am a big fan of lisp-liked languages. I studied and did some coding using racket, common-lisp, elisp and clojure after I read Paul Graham’s essays about lisp.
Posts
Setup docker in wsl2
Installation I installed Ubuntu 22.04 on my laptop following the scripts here.
sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin service docker start Troubleshootig It is little different from my previous installation.
Posts
Hash vs UUID to replace NRIC/L4C
Item
Hash/encryption
UUID
Order preservation
possible (linear hash)
possible ( customized UUID algorithm)
length
shorter or longer
fixed
ubiquitous
anyone or machines can be used to hash
depends
performance (computing)
?
?
performance (search)
fast
slow
References:
Posts
Keep the search result pages in search engines up to date
Last week I was assigned a task to keep search result pages of a site of my company up to date. After researching, trial and errors, I found out the following ways to keep the search result pages in search engines up to date.
Remove outdated content from search result of google and Bing.
temporary: block URLs from webmaster tools
permanent:
get sitemaps.
Posts
linux utils equivalent in powershell
I never thought I will learn to use powershell seriously. Now I joined NTUC, there are many restrictions. Today I started to use linux utils equivalent in powershell.
dig: Resolve-DnsName
telnet: Test-NetConnection
host: Get-Host
touch: New-Item
cat: Get-Content
tail: Get-Content
grep: Where-Object or Select-String
man: Get-Help
References https://mathieubuisson.github.io/powershell-linux-bash/#pwd- -
Posts
filter data conditionally using power-query
2 days ago, I didn’t figure out how to filter out data using power-query. I used a workaround solution to achive the same goal. Yesteray I occasionally found that I can filter out data directly without using my workaround solutions.
Table.SelectRows
Table.SelectRows( Table.FromRecords({ [CustomerID = 1, Name = "Bob", Phone = "123-4567"], [CustomerID = 2, Name = "Jim", Phone = "987-6543"], [CustomerID = 3, Name = "Paul", Phone = "543-7890"], [CustomerID = 4, Name = "Ringo", Phone = "232-1550"] }), each ( [CustomerID] > 2 and Text.
Posts
Subdomain or path for dev/stage/uat environments
In my previous two companies, everytime I used the subdomain way without thinking much about this. Recently I wondered the rational behind this decisions. I had the clear answers two days ago. Today I have the time to put it into this writing.
Factors
subdomain(dev.example.com)
subdomain reasons
path (example.com/dev/)
path reasons
server side performance
9
dns records point to differnent IP.