原创 VS 2017 'scanf': This function or variable may be unsafe. Consider using scanf_s instead

1、解決辦法:在頭部加上 #pragma warning(disable:4996) 即可,示列: #pragma warning(disable:4996) #include <stdio.h> int main() {

原创 C/C++ 算數運算與賦值運算

#include <stdio.h> #include <iostream> int main() { // 算數運算符 + - * / % int a = 2, b = 6; printf("a = %d, b = %d

原创 C/C++ 位操作符

#include <stdio.h> int main() { // 位操作符 // 操作符 說明 // ~ 按位取反 // << 左移 // >> 右移 // <<= 左移並賦值 // >>= 右移並賦值 // &

原创 Centos 8.1與Winwods 10 雙系統(圖解,引導修復)

Linux 過去主要作爲服務器運行,但經過幾年的發展,其用戶界面有了很大的改善。如今,Linux 已經成爲美觀易用,用戶友好的桌面操作系統。在某些方面,Linux 甚至趕超Windows 和 Mac 成爲用戶首,主要體現: 安全性、高可用

原创 Tomcact 內存溢出解決方案(原因:文件上傳導致)

# 首先我用的是JDK 1.8 # MetaspaceSize屬性可以適當調大一點 # Windows版本修改catalina.bat set JAVA_OPTS=-Xms1024m -Xmx1024 -XX:MaxNewSize=

原创 Node.js 抓取後臺模板圖標信息

var http = require('http'); var fs = require('fs'); // 文件系統模塊 var cheerio = require('cheerio'); // 抓取網頁數據模塊,需要安裝,n

原创 Ubuntu 18.04 搭建內部共享資源服務(samba)

1、首先我們需要安裝samba服務器 cocosum@localhost-coco:~$ sudo apt-get install samba samba-common 2、如果檢查不到上面的依賴建議更新一下, 可跳過 cocosu

原创 Centos 7.6 yum安裝Redis(更新時間2020/1/9 09:46)

1. 安裝 [root@VM_0_3_centos ~]# yum -y install redis 2. 啓動/關閉/重啓 # 啓動方式有幾種 # 配置文件啓動 &表示後臺運行 [root@VM_0_3_centos ~]# re

原创 HttpClient GET/POST

1、Maven項目依賴 <!-- httpclient --> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclie

原创 Centos 7搭建Gitlab服務器、發郵件修改密碼、修改默認端口號(更新時間2020/01/10 12:56)

1、安裝gitlab服務器之前我們需要去下載gitlab源 # 先檢查是否有wget下載工具 [root@VM_0_3_centos ~]# wget --version GNU Wget 1.14 built on linux-gnu

原创 Apache 2.X禁止IP直接訪問

個人的服務器只開放了80/22/443/6379這些端口,不想全部禁用IP訪問,不如6379是redis的訪問端口,只需要如下: # disable ip address request <VirtualHost *:80>

原创 Centos7 安裝firewall防火牆配置

1、安裝 [root@cocosum ~]# yum -y install firewalld 2、啓動,關閉、重啓、查看狀態、重新加載規則、開機自啓 # 啓動的方式 [root@cocosum ~]# systemctl start

原创 Spring boot 整合Ueditor(百度編輯器) 簡潔版(圖片上傳)

1、先給大家拜個早年! 看個效果圖:   2、去百度官網下載UEditor。機票 3、下載下來是這樣的:     # config.json 配置文件(需要引用) # controller.jsp springboot

原创 Echars 柱狀圖爲0的數據不顯示(包括懸浮時)

1、先來個效果圖,仔細看第二步, 其它的可以忽略:   2、想柱狀圖爲0的數據不顯示,以及懸浮時也不顯示一共需要兩步: # 第一步控制柱狀圖爲0的不生成柱狀圖。 # 大家應該知道option裏面有一個series屬性是來控制數據

原创 Bootstrap modal 居中顯示與 從左側或右側彈出

1、下面是,modal在屏幕正中間顯示 let _modal = $('#userModal'); _modal.on('show.bs.modal', function(){ var $this = $(this)