Sometime, I want to check my public IP address. However in that machine, there is no GUI or Web Browser to check the IP via ipinfo, whatismyipaddress services,... User Interface: https://ipinfo.io/ https://ifconfig.me Command: curl -s ifconfig.me/ip or curl -s ipinfo.io Where "-s" or "--silent": hide progress meter and display output
Author: Hung Doan
[Snippet] I want to delete all bin and obj folders to force all projects to rebuild everything
Good snippetĀ code to remove all bin and obj folder
How to buy and convert SSL certificate to PFX format
Use OpenSSL to convert SSL certificate to PFX
Hyper-V encountered an error trying to access an object on computer
If you are working with Hyper-V or Docker for Windows and your Hyper-V or docker can't be started due to the error: [Window Title] Hyper-V Manager [Main Instruction] An error occurred while attempting to connect to server "YOUR-PC-NAME". Check that the Virtual Machine Management service is running and that you are authorized to connect to … Continue reading Hyper-V encountered an error trying to access an object on computer
How does entity framework migration deal with DbContext?
In EntityFrameworkCore, if you want to create migration files for your DbContext, you would like to run a command like this > dotnet ef migrations add InitMigration Do you know how the 'migrations add' works? There are various ways to create DbContext in the migration, do you know that? In this article, I will give … Continue reading How does entity framework migration deal with DbContext?
.NET Core 2.2 is not visible In Visual Studio
If you are a Visual Studio user, there are MSBuild version requirements so use only the .NET Core SDK supported for each Visual Studio version. By that means, If you are using Visual Studio 2017, you only able to use .NET Core 2.2.106 SDK VS Version.NET Core SDKVisual Studio 2017 and Visual Studio for Mac2.2.106Visual … Continue reading .NET Core 2.2 is not visible In Visual Studio
Good Tip – Flash fill in Microsoft Excel to recognize and fill data for you automatically
Flash Fill automatically fills your data when it senses a pattern. For example, you can use Flash Fill to separate first and last names from a single column, or combine first and last names from two different columns. Or I want to extract "hours" field from "Task" column in below picture: (Extract hours field in … Continue reading Good Tip – Flash fill in Microsoft Excel to recognize and fill data for you automatically
Change screen resolution of macOS in Virtual Box
When you install macOS in Virtual Box, the screen resolution is predefined, say It's 1024x768. You are not able to change it via Virtual Box settings. In this article, I will tell you how to change the Screen Resolution of macOS in Virtual Box within two steps. Default screen solution is too mall compare to … Continue reading Change screen resolution of macOS in Virtual Box
How to config static IP address in Ubuntu 18.04 server with Netplan
Ubuntu 18.04 uses now Netplan to configure the network interfaces, so the configuration must be done in the file /etc/netplan/50-cloud-init.yaml sudo vi /etc/netplan/50-cloud-init.yaml DHCP address: network: version: 2 renderer: networkd ethernets: enp3s0: dhcp4: true Static address: network: version: 2 renderer: networkd ethernets: enp3s0: addresses: - 10.10.10.2/24 gateway4: 10.10.10.1 nameservers: addresses: [10.10.10.1, 1.1.1.1] You can find … Continue reading How to config static IP address in Ubuntu 18.04 server with Netplan
The are Many Ways Websites Track You Online
5 minutes ago I visited a book store website. A few minutes later I browse another site, It shows me some advertise about books. How can they do that? That is about retargeting marketing. There are some techniques to track you on the internet, they will know your habits, your browsing history,... Base on these … Continue reading The are Many Ways Websites Track You Online