Change severity list in Mantis

Add the below line into config_inc.php to change the options in the severity list.
$g_severity_enum_string = '10:feature,30:text,40:tweak,50:minor,60:major,70:crash,80:block';

Or remove the severity field completely by adding the below array into config_inc.php.
$g_bug_report_page_fields = array(
'additional_info',
'attachments',
'category_id',
'due_date',
'handler',
'os',
'os_version',
'platform',
'priority',
'product_build',
'product_version',
'reproducibility',
// 'severity',
'steps_to_reproduce',
'tags',
'target_version',
'view_state',
);

Refer to the config_defaults_inc.php file for the details.

Reference:
https://mantisbt.org/forums/viewtopic.php?t=1193

Capturing screenshot is slow in Mac OS

Solution:

1. Go to System Preferences
2. Open Extensions
3. Choose Finder in the left sidebar
4. Disable Google Drive extension

Copy MySQL row with new id

CREATE TEMPORARY TABLE tmp SELECT * from my_table WHERE ...;
ALTER TABLE tmp drop pk_id; # drop autoincrement field
INSERT INTO my_table SELECT 0,tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;

Reference: https://stackoverflow.com/questions/11331573/copy-row-but-with-new-id/11331672#11331672

Problem: Got the below error when running mysql_upgrade
Incorrect database name '#mysql50#.rocksdb' when selecting the database

Solution:
systemctl stop mariadb
cp -R /var/lib/mysql /var/lib/mysql.bak
rm -rf /var/lib/mysql/.rocksdb/
systemctl start mariadb

Reference:
https://www.suse.com/support/kb/doc/?id=7014519

Problem:
[proxy_fcgi:error] [pid 3659] (70007)The timeout specified has expired: [client :39524] AH01075: Error dispatching request to : (polling)

Solution:
vim /etc/httpd/conf/httpd.conf
Timeout 600

systemctl reload httpd

Reference: https://stackoverflow.com/questions/46594731/php-apache-error-dispatching-request

The following previous generation instance types support PV AMIs: C1, C3, HS1, M1, M3, M2, and T1. Current generation instance types do not support PV AMIs.

Reference: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/virtualization_types.html

Disable email notification from cron job

crontab -e

Add the below line to the top.
MAILTO=""

Steps to resolve:
1. npm install
2. cd node_modules/react-native
3. scripts/ios-install-third-party.sh
4. cd third-party/glog-0.3.5
5. ./configure
6. cd ../../../../
7. react-native run-ios

** DO NOT execute "react-native run-ios" until step 7.

Reference: https://github.com/facebook/react-native/issues/19774#issuecomment-427213573

card-img distorted in IE 11

Solution:
Add min-height: 0.1px to .card-img

Set Password Expiry Date for an user

chage -M number-of-days username

Flag Counter