Category: it

Enable localhost on windows and access from mobile in same LAN

In oder to configure your Windows to let your other devices access, you will need to do following steps: 1- Start -> Search -> cmd 2- Type “ipconfig” Look for your PC address. If you are using Wifi, then: Under Wireless LAN adapter Connections wireless network, take note this: IPv4 Address……: 192.168.x.x 3- Open “Windows …


How to generate ssh key and upload to remote server

In order to work with a remote server, you will need to have ssh key added for authentication. This guide will go through the process of generating ssh key and adding to a server. 1- SSH key generation Open terminal ssh-keygen -t rsa -C “<your_email_which_you_used_to_register_with_the_remote_server>” -b 4096 TienTham-2:tmp tientham$ ssh-keygen -t rsa -C “<your_email_which_you_used_to_register_with_the_remote_server>” -b …


ssh to digital ocean droplet

If you have already setup for a droplet in Digital Ocean with an ssh key. Then, you can follow steps below to access to your droplet using terminal: TienTham:.ssh tientham$ ssh-add do_id_rsa Identity added: do_id_rsa (do_id_rsa) TienTham:.ssh tientham$ ssh root@<ip_address_of_your_server> You are required to change your password immediately (root enforced) Welcome to Ubuntu 18.04.1 LTS …


How to find provisioning profile in MAC OS

Once you have provisioning profile installed in your MAC. If you want to find out where it is, just click into Finder In the menu top bar, click “Go” -> “Go to folder” as in the picture   Then: Click “Go”, you will see the folder: “Provisioning Profiles”. Your files are stored inside this folder. …


it

Extract java library .jar or .aar using command line

Sometimes, you want to extract .jar or .aar file to see the classes or to add into your project. Following are steps to do 1- With .jar Open terminal console jar xf <your_jar>.jar You then will see the extract files / folders created 2- With .aar .aar is a compressed file. You can do as …


Why does my gitignore not ignore a file?

When you work with Git, many times, you may see that you have a file but you do not want to track it. You put this file inside your .gitignore but the file still is tracked. Why that problem? This is because your file being held inside git cached. And you will need to remove …


Design Pattern – Singleton c++ with mutex to avoid many instance doing same work on critical section

Design pattern helps you make your code cleaner and reusable. And this blog is to show you a technique in which we can apply singleton design pattern and mutex to guarantee the access into crtical section. 1. in header file .h class A { public: ¬†… static A* getInstance(); … private: … ¬†static boost::mutex Amutex; …


Git – Author’s experience – Part 1

This series of Git handy blogs is continuously updated. During my work, I have learned/collected several git commands and I would like to share them with you. Hope they are useful for your career as well. 1- Common commands git status git log git log –all –decorate –graph : You are able to see, full …


Compress/Extract files with Linux command lines

This blog will be updated frequently to give you as many as possible way to work with compressed files in Linux. A- Compress B- Extract 1 – .7z tientham@tientham:/tmp$ sudo apt-get install p7zip-full tientham@tientham:/tmp$ 7z x /home/tientham/Downloads/tito.7z 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) Processing archive: /home/tientham/Downloads/tito.7z Enter …


C++ learning experience – part 1

During my c++ study, I have collected some definitions, explanations about topics that I have not known or not master yet. I would like to write down here to share my studying with you. 1 – Volatile key word: You use “volatile” when define a variable so that the compiler will not try to optimize …