Using AngularJS filter inside ternary operation

Read more →

Move Column Position Without Deleting (MySQL/MariaDB)

Read more →

Cannot install MySQL Python on OSx

Recently, i worked a lot using Python on creating a web application and web api. I use Django Web Framework and use MySQL for data storage. To use mysql in django we need to install a connector driver, i use python module called MySQL-Python. I’m using Python 2.7.x and OSx Sierra. And MySQL-Python depends on mysql-connector-c in OSx. Installing the connector is easier with brew. brew install mysql-connector-c Like always, i use pip to install dependency of my application.
Read more →

ZSH NoClobber: Keep File save from overwriting

Last night, i build some script in sh to change an existing value from a few files. Let say, i have this command: echo "Hai" > outputfile.txt If the file outputfile.txt isn’t already exist, the command will be executed successfully. But, if the outfile.txt was an existing file, we will got an error zsh: file exists: outputfile.txt. (zsh is my current shell) And of course, i got the very same error last night because i wanted to change a value from an existing files.
Read more →

Hugo is Great

Hugo is one of the best static web generator nowadays. Hugo built on top of Go and its easy to use, easy to deploy. If you’re not familiar with Static Web Generator, you can visit staticgen.com to see how many libraries or tools that exist for this such thing. And also you can google about Static Web Generator. This web is build using Hugo, and i used Jekyll before migrating to Hugo.
Read more →