All images are designed by https://www.linkedin.com/in/chaimadev/
Just a web developer
This is where I write my own articles or I collect from the internet about coding tips, functions, features.
All images are designed by https://www.linkedin.com/in/chaimadev/
As a web developer, I am sure that we usually use replace method to transform some string content. However, we probably do not know how to use the replace with a callback function and understand what it is. So now, in this article, I am going to share with you…
If you were a coder, I think you should have heard about the keyword “Clean Code”, right? However, I believe there are not many people who truly understand about CleanCode. So that, why should we make “Clear Code” in programming? For its answer, let’s take a deeper investigation from this…
In PHP, sometime we need to create PHP objects to do some logical handlers. The definition of object in PHP is not distinguished clearly like JavaScript. We usually use object to create an instance of class. Quick view Overview Create custom class Use stdClass() to create PHP objects Converting to…
Quick view Overview Methods Submit form Ajax call Overview In this tutorial, I am going to show you 2 ways to submit data to server side. This tip will answer for some questions: How can submit form using JavaScript? How can submit form without reloading a page? How can submit…
1. Full script. 2. Explain in detail. I want to copy all images in specific folder in to my external hard disk which is mount to E:\. I will copy it to E:\Photos\<folder>. The <folder> will be one of list: “travel, family, work, avatar”. As usual, we add @echo off…
I am not going to go around, let’s go to the point. This is all the script that I will talk about. Firstly, we create a file and name it to whatever you want, I named it as backup.sh. One thing you should remember that the file need to be…
Quick preview Overview How to set alias for command in Linux Some of my daily use alias Overview On Window, we got used with Desktop shortcut which we can quickly open an application. In fact, opening an application always needs a command. On Window, Microsoft engineers made it shorter and…
Quick preview Overview Write as normal way Write in a Promise Conclusion 1. Overview 2. Write as normal way 3. Write in a Promise 4. Conclusion Normal In promise – Too long and many parameters to input– Many callback function that is hard to debug– Because of callback function so,…
1. Choose version: 2. Installation and Configuration I use Ubuntu 20.04 and I want to install mongodb Community ver 2.6.12 Installation: Configuration: Configuration options on version <3.0 is different with version >3.0 so I googled it. This is what I had. On this file, you need change systemLog.path, net.port and…