Playing With Array on Javascript
I’m not a FrontEnd Web Developer. So it’s kind of a note for me.
I have this simple list, or array.
var arr = [23, 12, 1992]; I always use list or array to store data, and sometimes i need to check if some value is already exists on the list. Sometimes i need to check if an index has already exists on the list.
How to check if some value has already exists?
Parsing Time from JSON String in GO
Parsing date or time from a JSON String in Go is not as easy it is. Recently i found this problem when i used gin.Context.BindJSON() function to binding a json raw body from client into a struct of mine.
For any other data types, i could easily add “string” on the struct tags. But it does not seem like to be working on time.Time types.
Example:
type MyStruct struct { Amount float64
json:"amount,string"
} Above type struct will be working smoothly, but for this:
Run 10KM Per Year
10 April 2016. The day that my father died.
I have this promise to my father when he died. I’m gonna Run 10KM per Year on April.
I miss my father, so much.
My father hate my job as a web developer, he thinks becoming a web developer is not a good job. Becoming a Web Developer is not really becoming anything.
He always want me to become a Police Officer just like him.
cmus - C* Music Player
Music is like a part of me. Music helps me think, especially when i’m writing some codes.
cmus - C* Music Player is an app that i used to play my favorite song. It is simple, vim-like keybind.
This is why i used cmus as my music player:
It is playing on the terminal. Hey, i’m a terminal guy. I don’t want to spend my time just to change the song with a “clack-click” from the desktop using a mouse.
Replacing Flask with Hugo
Since a few months ago my own website become silent. It’s because i don’t have the time to write some new articles. Then a few days ago i started to think about “I want to replace my website using Go, i’m not writing a Python Code anymore”.
Well, it’s been more than six months i’ve been learning and using Go Programming Language. I even start to migrate all of my works from Python or PHP to Go.