
开发
懒虫早
basic.foxpro.vb.vfp.delphi html/css javascript python
树莓派
展开
-
Vue/cli 文件架构及开发中的常见问题
一、main.jsimport Vue from 'vue';import ElementUI from 'element-ui';import router from './router';import store from "./store";import 'element-ui/lib/theme-chalk/index.css';import App from './App.vue';Vue.use(ElementUI);import axios from 'axios'i原创 2021-03-03 09:55:55 · 330 阅读 · 0 评论 -
PHP 相关函数
PHP 相关函数1、字符串数组转PHP数组$str = "{'name':'hzx','name':'xiao'}";// print_r(explode(",",$str));echo json_encode(explode(",",$str));2、时间加减$d = "2021-03-01 15:52:22";$t = "720";$ret = date('Y-m-d H:i:s',strtotime("$d +$t minute"));//注:minute 分钟//可原创 2021-03-01 17:37:46 · 156 阅读 · 0 评论 -
vue-router 路由的使用
vue-router 路由的使用main.js引用import Vue from 'vue';import ElementUI from 'element-ui';import router from './router';import store from "./store";import 'element-ui/lib/theme-chalk/index.css';import App from './App.vue';Vue.use(ElementUI);import ax原创 2021-02-27 12:37:47 · 155 阅读 · 0 评论 -
vue/cli axios post的使用及Authorization值传递
vue/cli axios post的使用及Authorization值传递main.js引用:import axios from 'axios';Vue.prototype.$http = axios;axios.defaults.baseURL = "http://localhost:8080/";程序中使用: let header = { headers: { "Access-C原创 2021-02-27 12:34:44 · 1697 阅读 · 0 评论 -
防火墙(firewall)的操作命令
CentOS7 防火墙(firewall)的操作命令安装:yuminstall firewalld1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld禁用,禁止开机启动: systemctl disable firewalld停止运行: systemctl stop firewalld2.配置firewalld-cmd查看版本: firewall-cmd...转载 2020-06-06 13:32:57 · 3362 阅读 · 0 评论 -
Windows 启动自动运行程序,隐藏运行窗口运行
1、生成 run.vbs文件 DIM objShell set objShell = wscript.createObject("wscript.shell") iReturn = objShell.Run("python C:\Users\Administrator\python\web.py", 0, TRUE)2、在 Windows启动文件夹生成快捷方式Windows 10 启动路径:C:\ProgramData\Microsoft\Windows\Start M...原创 2020-05-30 17:11:03 · 2289 阅读 · 0 评论 -
为 Kodi 自制遥控器
为 Kodi 自制遥控器2015-07-24 09:11译自:http://www.linuxvoice.com/xbmc-build-a-remote-control/作者: Ben Everard原创:LCTThttps://linux.cn/article-5877-1.html译者: zpl1025通过运行在 Android 手机上的自制遥控器来控制你的家庭媒体播放器。Kodi是一款很优秀的软件,能够将几乎所有电脑变身成媒体中心。它可以播放音乐和视频,显示图片,甚至...转载 2020-05-09 12:06:28 · 2626 阅读 · 0 评论 -
Mysql 常用语法
Mysql字符串截取MySQL 字符串截取函数:left(), right(), substring(), substring_index()。还有 mid(), substr()。其中,mid(), substr() 等价于 substring() 函数,substring() 的功能非常强大和灵活。 1. 字符串截取:left(str, length) mysql> s...原创 2019-11-06 10:50:38 · 126 阅读 · 0 评论 -
go build 不同系统下的可执行文件
Golang 支持在一个平台下生成另一个平台可执行程序的交叉编译功能。1、Mac下编译Linux, Windows平台的64位可执行程序: 1 2 $ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go buildtest.go $ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 g...原创 2019-11-03 10:53:34 · 499 阅读 · 0 评论 -
Linux 搭建 vue平台
一、安装npm1、ubuntusudo apt-get install npm2、Centossudo yum install npm二、安装cnpmsudo npm install cnpm -g三、安装脚手架,搭建模板框架cnpm install -g vue-cli四、创建项目vue init webpack vue_tes...原创 2019-09-18 16:34:32 · 122 阅读 · 0 评论 -
debian10.0 安装后
1、安装输入法ibus-table-wubi2、安装vs codesudo apt updatesudo apt install software-properties-common apt-transport-https curlcurl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo ...原创 2019-08-13 08:38:05 · 2419 阅读 · 0 评论 -
php exec 执行权限问题
chmod 777 /etc/sudoersvim /etc/sudoers修改加入内容:# User privilege specificationroot ALL=(ALL:ALL) ALLwww-data ALL=(root) ALL# Allow members of group sudo to execute any command%sudo ALL=(A...原创 2019-05-17 08:59:30 · 4432 阅读 · 0 评论 -
HTML 内容不能被选择,不能被复制
1、通过css的方式 * { /* moz-user-select: -moz-none; */ -moz-user-select: none; -o-user-select: none; -khtml-user-select: none; -webkit-u...转载 2019-05-26 08:43:07 · 5582 阅读 · 1 评论 -
树莓派 MFRC522 读取
很多人可能都像我一样,英语不好,又做着码奴的工作,MFRC522安装和使用,还花了不少阎王钱,都没找到问题。不管怎么安装运行python Read.py出错了:Traceback (most recent call last): File "Read.py", line 43, in <module> MIFAREReader = MFRC522.MFR...原创 2019-05-30 22:39:26 · 3258 阅读 · 5 评论 -
Centos 安装 httpd+php+mariadb
1、安装httpdyum install httpd2、安装phpyum install php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash3、安装mariadb# yum install mariadb-s...原创 2019-06-19 20:59:28 · 392 阅读 · 0 评论 -
使用树莓派的摄像头,将树莓派自身提供的picamera的API数据转换为Python Oencv可用图像数据
使用树莓派的摄像头,将树莓派自身提供的picamera的API数据转换为Python Oencv可用图像数据:# import the necessary packagesfrom picamera.array import PiRGBArrayfrom picamera import PiCameraimport timeimport cv2# initialize the ca...转载 2019-06-04 16:38:16 · 1414 阅读 · 0 评论 -
js code 下ctrl+alt+f 格式化 vue 空格设置问题
格式化文件时缩进为4个空格,在网上找了很多解决办法,最终用这个办法解决了。在user.settings中这样设置:文件->首选项->设置,然后在右边编辑框输入以下设置:{ "prettier.tabWidth": 4, "vetur.format.defaultFormatter.html": "prettier", "editor.detectInde...原创 2019-06-27 09:07:48 · 477 阅读 · 0 评论 -
JavaScript 字符串转 正则表达式
例:手机号验证let code_verify= /^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/方法1: let country_verify = new RegExp(code_verify)结果: /\/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[01356...原创 2019-07-29 18:26:54 · 7567 阅读 · 0 评论 -
Mariadb 相关问题
1.开启日志SET GLOBAL log_output = 'TABLE';SET GLOBAL general_log = 'ON';2.查看日志表select * from mysql.general_log;原创 2019-08-14 12:04:56 · 132 阅读 · 0 评论