Android Template Design Patterns - Building BaseActivity for the Whole Application

1. Model Introduction Definition of patterns Define the framework of the algorithm in an operation and defer some steps to subclasses. It enables subclasses to redefine some specific steps of the algorithm without changing the structure of the algorithm. Use scenarios of patterns When multiple subclasses have common methods and the logic ...

Posted by tiggy on Sun, 24 Mar 2019 20:09:30 -0700

Suspender teaches you 9 tricks to protect your linux server security

No important system can ignore server security, especially in the public cloud. There are many online tips and tutorials on this subject. Here we only look at a few basic and common best practices. Several security measures to be implemented after system configuration is completed Take Ubuntu 16.04 as an example: 1. Update the kernel ...

Posted by patricklcam on Fri, 22 Mar 2019 15:18:52 -0700

iptables rules backup and recovery, firewalld's nine zones, firewalld's operation on zones, firewalld's operation on service s

iptables rule backup and recovery 9 zone s of firewalld   System CTL disable iptables boot on System CTL stop iptables turn off service System CTL enable firewalld boot System CTL start firewalld opens the service View all zone s [root@glinux-01 ~]# firewall-cmd --get-zones block dmz drop external home internal public trusted work ...

Posted by itworks on Tue, 05 Feb 2019 18:09:19 -0800

Oracle Case 04 - TNS-12547: TNS:lost contact

Oracle database server DG can not complete data synchronization after restarting from the database. The specific error information is as follows: I. Misinformation alter log error reporting *********************************************************************** Fatal NI connect error 12547, connecting to: VERSION INFORMATION: TNS f ...

Posted by gigamike187 on Tue, 05 Feb 2019 09:24:16 -0800

The most effective way - VSFTP startup failure - Failed to start Vsftpd ftp daemon

VSFTP startup failure - Failed to start Vsftpd ftp daemon The error is as follows [root@host-liu vsftpd]# systemctl status vsftpd.service vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled) Active: failed (Result: exit-code) since Tue 2018-07-03 10:09:23 CST; 2min 3s ...

Posted by martyn on Mon, 04 Feb 2019 22:42:16 -0800

CentOS 6.8 installs mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz

1. Download Compressed Files on mysql Official Website https://dev.mysql.com/downloads/mysql/5.7.html#downloads 2. Copy the downloaded files to the / opt directory of centos system III. Start installation 1. Decompress mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz [root@centosDemo opt]# tar -zxvf mysql-5.7.22-linux-glibc ...

Posted by cookspyder on Mon, 04 Feb 2019 16:42:16 -0800

centos Server Builds SVN

I. Installation and testing [root@VM_0_10_centos ~]# yum install subversion View svn version [root@VM_0_10_centos ~]# svnserve --version svnserve, version 1.7.14 (r1542130) compiled Apr 11 2018, 02:40:28 Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see th ...

Posted by Jaxolotl on Fri, 01 Feb 2019 22:42:15 -0800

linux rookie basic learning (6) network

Network configuration under linux 1. What is IP ADDRESS internet protocol ADDRESS ##Network Protocol Address ipv4 internet protocol version 4 1.2x32 ip It consists of 32 zeros and 1. 11111110.11111110.11111110.11111110 = 254.254.254.254 2. Subnet mask Used to divide the network area The number on the ip corresponding to t ...

Posted by agent007 on Tue, 29 Jan 2019 09:30:15 -0800

A Processing Method of Exceptional Failed to execute send on XMLHttpRequest when uploading files from ASP.NET WebApi

The author recently wrote a system for uploading files through ASP.NET MVC4 WebApi, jQuery, ajax and FormData (see Multi-file uploading method based on ASP.NET MVC4, WebApi, jQuery and FormData Testing everything on your laptop, but publishing it to the client server (cloud server, Windows Server 2012) Operating system, with strong firewall p ...

Posted by extrovertive on Thu, 10 Jan 2019 19:36:10 -0800

winexe Executes Error Reporting Solutions in windows 8.1 and windows Server 2012 R2

Summary Report errors: ERROR: Cannot open control pipe - NT_STATUS_INVALID_PARAMETER Reason: After doing a lot of research on code, hacker attacks and reading a lot of websites and even discussing topics with MS, the root cause of the problem is that Microsoft has deleted SMB1.0 from Windows 8.1 and Windows Server 2012 ...

Posted by recset on Wed, 26 Dec 2018 13:03:06 -0800