May 24, 2019
How to set website's default encoding in IIS? How to fix a page that can't display foreign language like Chinese?
Add the tag inside the head tag of the web page. Also add the following setting inside the tag in the web.config file.
May 23, 2019
Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters.
May 22, 2019
May 19, 2019
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
May 18, 2019
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q as descendants.
May 16, 2019
The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value.
May 13, 2019
A heap is a tree-based data structure which satisfies the heap property, if the parent node is greater than the child node is called max-heap or if the parent node is less than the child node is called min-heap.
January 28, 2019
Certbot ImportError: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer.
File "/bin/certbot", line 7, in from certbot.main import main File "/usr/lib/python2.7/site-packages/certbot/main.py", line 17, in from certbot import
November 25, 2018
Right click on your start button and select "Command Prompt (Admin)". In the command prompt, type "control appwiz.cpl".
March 18, 2018
Koken is a content management system (CMS) and web site publishing for photographers. Your images are your most important asset. Koken treats them with the attention they deserve by including a full-featured management interface that looks and feels like a desktop application.
March 17, 2018
March 16, 2018
Shrinking logical volume (LVM) must go through several steps. Unlike standard partition (ext4 file system). In order to shrink root logical volume, we must boot into a live CD like SystemRescueCD. And then shrink the volume from there.
March 16, 2018
Sometimes we forget root password and needs to reset. One of the approach is to reset via SystemRescueCD.
March 14, 2018
First we need to shrink the partition, and then shrink the qcow2 file.
March 4, 2018
This section covers adding storage devices to a guest. Additional storage can only be added as needed.
February 27, 2018
Doing MySQL load balancing on HAProxy has several advantages; such as ip address restriction. Configuring MySQL to use HAProxy proxy protocol is a ticky part. It needs to know HAProxy ip address.