Searching for interesting content and questions was always an important part of any programmer’s life. As a matter of fact, being able to search efficiently to find material is an important basic skill that every programmer should know.
In this posting series, I like to share some interesting posts and questions/answers that I encountered during my work. I also mention what was my query that resulted in that particular post. Hope you enjoy it!
Let’s start!
Docker Volume Relative Path
Once I was running up a docker container locally to test an application. The application required some initial admin setups and configs through UI that I had to redo each time I run the container. Therefore, I decided to create a directory and use it as a mounted volume to persistent the docker storage for config.
Surprisingly I encountered an error! Something like Invalid Character for the Volume
As I noticed in the Post blow, it seems the docker volume path has to be absolute and not relative!
So be careful!
Get Table Width With JS
This one gave me a headache for a while. I was trying to get the width of a table to use in another task. Tried many stuff and had no success since I was under the impression that “Yeah, this one is straightforward! no need to search!”
Wrong!
Finally, I found this. Looks like we need to use offsetWidth for a table!
https://stackoverflow.com/questions/11912673/javascript-to-determine-table-width-height
Style The Scrollbar in Chrome
The boss told me “I don’t like the scrollbar“.
I mean, he was right. The default one in Chrome is not nice. So how can I change that?
This post showed me how to do it.
https://stackoverflow.com/questions/44334106/how-can-i-style-horizontal-scrollbar-by-css
The End.