Data path '''' should NOT have additional properties (es5BrowserSupport)



D:\Visnam\vtimviecweb>ng serve --ssl true
Schema validation failed with the following errors:
  Data path "" should NOT have additional properties(es5BrowserSupport).
(node:5140) ExperimentalWarning: The fs.promises API is experimental


es5BrowserSupport add additional polyfill

Solution 1

For option es5BrowserSupport your @angular/cli required minimum version 7.3 and @angular-devkit/build-angular required minimum version 0.13 .

  1. Check your @angular/cli version. if is less than 7.3 then run following command

    ng update @angular/cli

  2. Check your @angular-devkit/build-angular version. if is less than 0.13 then run following command

    ng update @angular-devkit/build-angular

Solution 2

Also you can edit angular.json file and find "es5BrowserSupport": true and comment it. It will also work without updating dependency

Where to find the error messages of Postfix

https://serverfault.com/questions/747244/postfix-cant-send-mails-to-google-server-from-google-server


Have you already stumbled upon this comprehensive Postfix Debugging Howto? There's the following notice concerning logging:
Postfix logs all failed and successful deliveries to a logfile. The file is usually called /var/log/maillog or /var/log/mail; the exact pathname is defined in the /etc/syslog.conf file.
(syslog.conf specifies where the mail-facility logs get written to, it's rather self-explaining when you look at it.)

Troubleshoot: fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock

https://mellowhost.com/blog/troubleshoot-fatal-open-lock-file-var-lib-postfix-master-lock-unable-to-set-exclusive-lock.html


ERROR MESSAGE & TRACE DETAILS:

One of my customer came with an error saying the postfix in his server isn’t working. The server was running CentOS 7, and the system postfix status was inactive, means not running. Although, the system queue was running I could see. The error that was returning while restarting/checking status was the following:
# service postfix status
Redirecting to /bin/systemctl status postfix.service
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-01-09 04:04:05 UTC; 1s ago
Process: 9201 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
Process: 9197 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
Process: 9194 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
Main PID: 1358 (code=killed, signal=TERM)
Jan 09 04:04:03 twin7.hifrank.biz systemd[1]: Starting Postfix Mail Transport Agent...
Jan 09 04:04:03 twin7.hifrank.biz postfix/master[9273]: fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock: Resource tempo...vailable
Jan 09 04:04:04 twin7.hifrank.biz postfix/master[9272]: fatal: daemon initialization failure
Jan 09 04:04:05 twin7.hifrank.biz postfix/postfix-script[9274]: fatal: mail system startup failed
Jan 09 04:04:05 twin7.hifrank.biz systemd[1]: postfix.service: control process exited, code=exited status=1
Jan 09 04:04:05 twin7.hifrank.biz systemd[1]: Failed to start Postfix Mail Transport Agent.
Jan 09 04:04:05 twin7.hifrank.biz systemd[1]: Unit postfix.service entered failed state.
Jan 09 04:04:05 twin7.hifrank.biz systemd[1]: postfix.service failed.

HOW TO FIX:

The error to note here is the following:
fatal: open lock file /var/lib/postfix/master.lock
I first killed the smtp and smtpd processes that runs by postfix:
# killall -9 smtp
# killall -9 smtpd
But that didn’t solve the problem. I then used the fuser command to check which process holds the lock file:
# fuser /var/lib/postfix/master.lock
/var/lib/postfix/master.lock: 18698
Then we check the process 18698 and kill the responsible process:
# ps -axwww|grep 18698
9333 pts/0 S+ 0:00 grep --color=auto 18698

18698 ? Ss 4:28 /usr/libexec/postfix/master -w
# killall -9 /usr/libexec/postfix/master
or
# kill -9 18698
Once the process is killed, you can now start the postfix:
# service postfix start
# service postfix status|grep Active
Redirecting to /bin/systemctl status postfix.service
Active: active (running) since Tue 2018-01-09 04:15:50 UTC; 4min 45s ago

Move Facebook Messenger position of the chat icon

https://wordpress.org/support/topic/move-position-of-the-chat-icon/

Try using developer tools so you can get the code you need.
Insert the code in your custom CSS.
.fb_customer_chat_bubble_animated_no_badge {
    background: none !important;
    border-radius: 50% !important;
    bottom: 50pt !important;
    display: inline !important;
    padding: 0px !important;
    position: fixed !important;
    right: 8pt !important;
    top: auto !important;
}
Play with the settings, it works for me. I just moved it a bit to the top to unhide my BACK TO TOP button, as FB chat was fully covering this button.
Hope it helps.

điều chỉnh vị trí icon của Zalo chat khi load lên Web

https://developers.zalo.me/community/detail/6ea0414c7d099457cd18


CSS cho qua góc phải, vị trí trên dưới đều được nhưng qua trái là không được, nó sẽ nằm chết bên trái, mà người dùng không kéo đi đâu được.
Chỉ cần thêm đoạn sau vào CSS:
.zalo-chat-widget{  
    bottom: 90px!important;  
    right: 20px!important;  
}  
Hoặc viết thẳng chung vào với code nhúng:
  
.zalo-chat-widget{  
    bottom: 90px!important;  
    right: 20px!important;  
}  
  
Còn bạn nào muốn qua bên trái và bị chết bên trái thì dùng như sau:
.zalo-chat-widget{  
    bottom: 90px!important;  
    left: 20px!important;  
}  
Hoặc viết thẳng chung vào với code nhúng:
  
.zalo-chat-widget{  
    bottom: 90px!important;  
    left: 20px!important;  
}  
  
Chỉnh sửa lại con số cho phù hợp nếu muốn.

Get List of all files in a directory in Node.js

https://medium.com/stackfame/get-list-of-all-files-in-a-directory-in-node-js-befd31677ec5

//requiring path and fs modules
const path = require('path');
const fs = require('fs');
//joining path of directory
const directoryPath = path.join(__dirname, 'Documents');
//passsing directoryPath and callback function
fs.readdir(directoryPath, function (err, files) {
//handling error
if (err) {
return console.log('Unable to scan directory: ' + err);
}
//listing all files using forEach
files.forEach(function (file) {
// Do whatever you want to do with the file
console.log(file);
});
});

variable name contains dash creates problems for req.query for NodeJS Express?

https://stackoverflow.com/questions/22740821/get-variable-name-contains-dash-creates-problems-for-req-query-for-nodejs-expres

In javascript, object values can be accessed by using either . or []
When the key contains a dash, you cannot use the . notation because the - will be interpreted as "minus". This is not related to express, it's just how javascript works.
So you should use:
req.query["message-timestamp"]

How to install Git in AWS EC2

#Connect to your instance using putty

#Perform a quick update on your instance:
sudo yum update -y

#Install git in your EC2 instance
sudo yum install git -y

#Check git version
git version

What's the difference between utf8_general_ci and utf8_unicode_ci?

https://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci#:~:text=utf8mb4_unicode_ci%20is%20based%20on%20the,cuts%20designed%20to%20improve%20speed.


These two collations are both for the UTF-8 character encoding. The differences are in how text is sorted and compared.
Note: In MySQL you have to use utf8mb4 rather than utf8. Confusingly, utf8 is a flawed UTF-8 implementation from early MySQL versions which remains only for backward compatibility. The fixed version was given the name utf8mb4.
Note: Newer versions of MySQL have updated Unicode sorting rules, available under names such as utf8mb4_0900_ai_ci for equivalent rules based on Unicode 9.0 - and with no equivalent _general variant. People reading this now should probably use one of these newer collations instead of either _unicode or _generalMuch of what's written below is not of much interest anymore if you can use one of the newer collations instead.
Key differences
  • utf8mb4_unicode_ci is based on the official Unicode rules for universal sorting and comparison, which sorts accurately in a wide range of languages.
  • utf8mb4_general_ci is a simplified set of sorting rules which aims to do as well as it can while taking many short-cuts designed to improve speed. It does not follow the Unicode rules and will result in undesirable sorting or comparison in some situations, such as when using particular languages or characters.
    On modern servers, this performance boost will be all but negligible. It was devised in a time when servers had a tiny fraction of the CPU performance of today's computers.
Benefits of utf8mb4_unicode_ci over utf8mb4_general_ci
utf8mb4_unicode_ci, which uses the Unicode rules for sorting and comparison, employs a fairly complex algorithm for correct sorting in a wide range of languages and when using a wide range of special characters. These rules need to take into account language-specific conventions; not everybody sorts their characters in what we would call 'alphabetical order'.
As far as Latin (ie "European") languages go, there is not much difference between the Unicode sorting and the simplified utf8mb4_general_ci sorting in MySQL, but there are still a few differences:
  • For examples, the Unicode collation sorts "ß" like "ss", and "Œ" like "OE" as people using those characters would normally want, whereas utf8mb4_general_ci sorts them as single characters (presumably like "s" and "e" respectively).
  • Some Unicode characters are defined as ignorable, which means they shouldn't count toward the sort order and the comparison should move on to the next character instead. utf8mb4_unicode_ci handles these properly.
In non-latin languages, such as Asian languages or languages with different alphabets, there may be a lot more differences between Unicode sorting and the simplified utf8mb4_general_ci sorting. The suitability of utf8mb4_general_ci will depend heavily on the language used. For some languages, it'll be quite inadequate.
What should you use?
There is almost certainly no reason to use utf8mb4_general_ci anymore, as we have left behind the point where CPU speed is low enough that the performance difference would be important. Your database will almost certainly be limited by other bottlenecks than this.
In the past, some people recommended to use utf8mb4_general_ci except when accurate sorting was going to be important enough to justify the performance cost. Today, that performance cost has all but disappeared, and developers are treating internationalization more seriously.
There's an argument to be made that if speed is more important to you than accuracy, you may as well not do any sorting at all. It's trivial to make an algorithm faster if you do not need it to be accurate. So, utf8mb4_general_ci is a compromise that's probably not needed for speed reasons and probably also not suitable for accuracy reasons.
One other thing I'll add is that even if you know your application only supports the English language, it may still need to deal with people's names, which can often contain characters used in other languages in which it is just as important to sort correctly. Using the Unicode rules for everything helps add peace of mind that the very smart Unicode people have worked very hard to make sorting work properly.
What the parts mean
Firstly, ci is for case-insensitive sorting and comparison. This means it's suitable for textual data, and case is not important. The other types of collation are cs (case-sensitive) for textual data where case is important, and bin, for where the encoding needs to match, bit for bit, which is suitable for fields which are really encoded binary data (including, for example, Base64). Case-sensitive sorting leads to some weird results and case-sensitive comparison can result in duplicate values differing only in letter case, so case-sensitive collations are falling out of favor for textual data - if case is significant to you, then otherwise ignorable punctuation and so on is probably also significant, and a binary collation might be more appropriate.
Next, unicode or general refers to the specific sorting and comparison rules - in particular, the way text is normalized or compared. There are many different sets of rules for the utf8mb4 character encoding, with unicode and general being two that attempt to work well in all possible languages rather than one specific one. The differences between these two sets of rules are the subject of this answer. Note that unicode uses rules from Unicode 4.0. Recent versions of MySQL add the rulesets unicode_520 using rules from Unicode 5.2, and 0900 (dropping the "unicode_" part) using rules from Unicode 9.0.
And lastly, utf8mb4 is of course the character encoding used internally. In this answer I'm talking only about Unicode based encodings.

Cold Turkey Blocker

 https://superuser.com/questions/1366153/how-to-get-rid-of-cold-turkey-website-blocker-get-around-the-block Very old question, but still wan...