自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(78)
  • 资源 (14)
  • 收藏
  • 关注

原创 centos开放端口及防火墙配置

CentOS 7快速开放端口:CentOS升级到7之后,无法使用iptables控制Linuxs的端口,Centos 7使用firewalld代替了原来的iptables。查看防火墙状态:[root@centos7 ~]# firewall-cmd --state 查询有哪些端口是开启的:[root@centos7 ~]# firewall-cmd --list-port 开启端口:[root@centos7 ~]# firewall-cmd --zone=public --ad

2022-04-20 09:39:01 379

原创 python 打印字典

def print_dict(a_dict, level): for key, value in a_dict.items(): if isinstance(value, dict): print(' ' * (level-1), key, ':') print_dict(value, level + 1) else: print(' ' * (level-1), key, ':',.

2021-03-11 16:18:55 2402

转载 error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file

场景可能发生在ubuntu20,解决方法如下It seems like I fixed it. I could be wrong, but here is what I think happened:Ubuntu 20.04 upgraded libffi6 to libffi7 Python is still looking for libffi6What I did to fix it :Locatelibffi.so.7in your system$ find /usr/li..

2020-11-30 17:02:47 2029

转载 如何知道局域网内其他设备的IP

Open a terminal window to get to the command line. Issue the commandipconfigand pressReturn. On Linux typeifconfiginstead. Enter the commandarp -ato get more information.

2020-11-15 10:37:13 637

原创 mysql备忘

导出数据库中某个表的数据mysqldump -uroot -p123456 csmj rebate_log修改数据库表名rename table xxxx to nnnnn;获取建表语句show create table xxxxx

2019-08-28 15:59:44 168

原创 centos 安装最新go版本

yum updatewget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gztar -xzf go1.12.7.linux-amd64.tar.gzmv go /usr/localexport GOROOT=/usr/local/goexport GOPATH=$HOME/Projects/Proj1export P...

2019-08-23 09:31:32 866

原创 arduino 物联网 http 通信接口

在腾讯云的服务器里面写了一个http server服务,可用来在物联网设备之间进行通信。或者物联网设备与软件端通过http协议通信使用接口如下:以http get方式请求1 发送数据106.52.170.30:8888/send?sendfrom=发送者设备号(可自行任意设置)&sendto=接收者设备号(可自行任意设置)&data=内容列:106.52.170...

2019-08-14 08:08:22 1581 1

原创 kivy 打包 apk 错误

打包过程中出现以下错误 AttributeError: 'Buildozer' object has no attribute 'translate_target'解决方案如下pip install --upgrade --user https://github.com/kivy/buildozer/archive/586152c.zip...

2019-08-10 21:30:47 976

转载 升级 CMake版本 从 2.8.11 到 3.6.2 CentOS Linux

原文地址https://jotmynotes.blogspot.com/2016/10/updating-cmake-from-2811-to-362-or.htmlOn CentOS 7, using yum install gives you cmake version 2.8.11[root@thrift1 ~]#cat /etc/*releaseCentOS Linux re...

2019-06-30 08:38:35 13194 3

转载 centos修改终端分辨率

原文地址https://superuser.com/questions/816528/with-centos-7-as-a-virtualbox-guest-on-a-mac-host-how-can-i-change-the-screen-rMake yourself root:sudo su vi /etc/default/grub In Vi, pressiorInsert-...

2019-06-29 19:43:51 1223

转载 命令行安装 vmware tools

原文地址https://kb.vmware.com/s/article/1018414To install VMware Tools in a Linux guest operating system using Compiler:Ensure that your Linux virtual machine is powered on. If you are running a...

2019-06-29 12:38:13 859

转载 Python正则表达式指南

转载自:https://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html本文介绍了Python对于正则表达式的支持,包括正则表达式基础以及Python正则表达式标准库的完整介绍及使用示例。本文的内容不包括如何编写高效的正则表达式、如何优化正则表达式,这些主题请查看其他教程。注意:本文基于Python2.4完成;如果看到不明白的词汇请...

2019-06-21 21:20:15 181

原创 emacs,在多个文件中查找内容

课程链接:emacs,在多个文件中查找内容

2019-06-18 09:59:00 848

转载 python使用tensorflow检测图片中有什么物体,有没有人

课程链接:emacs日常开发,使用python检测图片中物体

2019-06-18 09:48:59 798

转载 putty怎么上传下载文件和目录

转载自https://blog.51cto.com/net881004/2149896xshell最近开始套路(收费)了,SecureCRT只有破解版(涉及到版权)。在建议用户用什么linux远程工具的时候犯难,最后选择的是putty。不过putty有个弊端,就是用不了rz、sz命令上传下载文件,很不方便。后来查阅网上资料,发现putty提供了相关工具上传和下载文件。从下面这个网址下载pu...

2019-06-08 13:59:03 14159 2

原创 python使用requests爬虫抓取美女图片网站图片

import requestsfrom lxml import etreefrom urllib.request import urlretrieveurl = 'https://www.2717.com'show_num = 0for page_num in range(217): page = 'https://www.2717.com/ent/meinvtupian...

2019-03-24 21:39:07 11184

转载 facenet 搭建人脸识别库

转载自:https://www.cnblogs.com/gmhappy/p/9472387.html选择的方式是从百度下载明星照片照片下载,downloadImageByBaidu.py# coding=utf-8"""爬取百度图片的高清原图"""import reimport sysimport urllibimport os import requests ...

2019-03-12 14:56:59 582

转载 Golang(go语言)http上传图片和显示图片

转载自:https://aiezu.com/article/go_image_upload_and_show.htmlpackage main;import ( "fmt" "io" "io/ioutil" "os" "path" "net/http" "errors" "strings&

2019-03-11 17:36:38 12146

原创 python pynput 实现键鼠录制

#-*- coding:utf-8 -*-from pynput.mouse import Listener as Mouse_Listenerfrom pynput.keyboard import Keyfrom pynput.keyboard import Listener as Keyboard_Listenerimport pickleimport threadingimpo...

2019-03-11 15:56:51 2070

转载 python人脸识别模块 face_recognition

Project descriptionFace RecognitionRecognize and manipulate faces from Python or from the command line withthe world’s simplest face recognition library.Built usingdlib’s state-of-the-art fac...

2019-03-05 15:31:58 1149

转载 python 多线程与多进程

原文地址:https://medium.com/@nbosco/multithreading-vs-multiprocessing-in-python-c7dc88b50b5bMultithreading vs Multiprocessing in Python

2019-03-04 10:08:18 504

转载 用树莓派几分钟搭建一个网络监控

原文地址:https://pimylifeup.com/raspberry-pi-webcam-server/This Raspberry Pi webcam server tutorial will take you through on how to have your very own Webcam that is visible on a web page.If you’re af...

2019-01-26 10:12:27 2389

转载 树莓派 使用python face_recognition做人脸识别

原文地址:https://www.pyimagesearch.com/2018/06/25/raspberry-pi-face-recognition/In last week’s blog post you learned how to perform Face recognition with Python, OpenCV, and deep learning.But as I hin...

2018-12-15 11:35:26 3953 3

原创 Selenium 学习笔记,第一个例子就报错,解决方法

from selenium import webdriverfrom selenium.webdriver.common.keys import Keysdriver = webdriver.Firefox()driver.get("http://www.python.org")assert "Python" in driver.titleelem = driver.find_ele...

2018-12-06 10:21:10 1070

转载 golang websocket 跨域问题

转载自:https://blog.csdn.net/imliutao2/article/details/80838975现象:request origin not allowed by Upgrader.CheckOrigin解决办法:修改golang中的websocket upgrader 配置如下var upgrader = websocket.Upgrader{    // 解...

2018-11-30 17:47:14 1665

转载 emacs 修改buffer编码

转载自https://blog.csdn.net/liumf2005/article/details/6400576 查看当前buffer的编码:M-x describe-coding-system按C-x <RET> r <TAB> 列出所有编码以指定编码重读当前buffer:C-x <RET> r utf-8,(revert-buffer-w...

2018-11-29 10:27:14 578

转载 shell脚本报错:-bash: xxx: /bin/bash^M: bad interpreter: No such file or directory

主要原因是test.sh是我在windows下编辑然后上传到linux系统里执行的。.sh文件的格式为dos格式。而linux只能执行格式为unix格式的脚本。使用Emacs         Emacs是一个Unix下面的文本编辑工具。它会在底部的状态栏上显示文件的信息。         DOS转UNIX :M-x      set-buffer-file-coding-system...

2018-11-04 21:08:03 198

原创 在windows下emacs使用tramp时打开远程shell需要增加额外配置

加入下面的配置(setq explicit-shell-file-name "/bin/bash")

2018-11-03 13:41:46 608

转载 Emacs Python 自动补全--Elpy

转载自:https://www.cnblogs.com/asmer-stone/p/5619015.html安装方法:首先,安装一些依赖包:# Either of thesepip install ropepip install jedi# flake8 用来检查语法错误pip install flake8# importmagic 用来自动引入需要的包pip ins...

2018-10-30 13:17:57 1193

原创 skynet编译错误解决方法

得解决方案如下安装autoconf,libreadline-devapt-get install autoconfapt-get install libreadline-dev

2018-10-16 12:03:55 1022

转载 网狐6603程序代码编译环境配置

程序代码编译环境配置1.配置visual studio2003编译环境编译代码前,需要先对VC环境进行配置。首先,代码需要用到“Directx SDK 9.0c”这个库,因此在编译前请把这个库放在D盘的根目录下。在“运营版\整理好的6603源码”目录下,将Directx SDK 9.0c文件夹拷贝到D盘根目录。打开Microsoft Visual Studio .NET2003,选...

2018-09-10 09:35:13 1597

转载 网狐6603编译某些子游戏的时候,出现fatal error LNK1179:错误

fatal error LNK1179: invalid or corrupt file: duplicate comdat “XXX”解决方法,找到(ocx和dll都是类似的)\6603_VS2013\游戏组件\开发库\Include\ShareControlHead.h#import “Flash.ocx” named_guids改为#import “Flash.ocx” nam...

2018-09-10 09:33:50 341

转载 网狐6603 相应的游戏组件信息不存在,如何知道游戏模块标识

可能的原因之一是你在创建游戏模块和游戏的时候把模块标识 写错了,如果你实在不知道子游戏的模块标识是多少有个方法可以解决:、如下图,在创建游戏的时候左上角的那个类型标识就是这个游戏的模块标识...

2018-09-10 09:32:47 917

转载 网狐6603 您正在 的 游戏房间中,不能同时进入此游戏房间! 的错误

出现这种情况主要是因为玩家在游戏过程中客户端突然崩溃,服务器没有收到玩家退出的消息,一直认定玩家还在游戏中,处理这个问题的方法是删除该玩家在QPTreasureDB中表gamescorelocker对应的数据,当然通过代码解决这个BUG才是最好的方法...

2018-09-10 09:31:31 1021

转载 网狐荣耀 HTTP 错误 500.21 – Internal Server Error 处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“Manage

将网站发布到IIS,访问发生如下错误:HTTP 错误 500.21 – Internal Server Error处理程序“PageHandlerFactory-Integr”在其模块列表中有一个错误模块“ManagedPipelineHandler”原因:在安装Framework v4.0之后,再启用IIS,导致Framework没有完全安装解决:开始->所有程序->...

2018-09-10 09:30:38 297

转载 网狐6603 创建游戏流程

游戏平台配置1.修改游戏平台IP地址为了游戏能在本地服务器运行,需要修改游戏平台代码的服务器地址、数据库地址等。用VS2003打开“运营版\整理好的6603源码\系统模块\全局定义”文件夹下的“Platform.h”文件,修改产品名字、记录地址、登陆地址和平台网站。产品名字根据自己游戏的名字修改即可,在调试阶段,记录地址、登录地址、平台网站全部改为本机地址“127.0.0.1”,待上线后再...

2018-09-10 09:29:05 5388 2

转载 网狐6603 HTTP 错误 500.19- Internal Server Error 错误解决方法

刚在本机部署了一个WebService测试,浏览的时候出现了“HTTP 错误 500.19 – Internal Server Error ”错误,如下图:经过检查发现是由于先安装vs2008后安装iis的缘故,只需重新注册下AspNet就可以了,具体步骤如下1 打开运行,输入cmd进入到命令提示符窗口。2 进入到C:\WINDOWS\Microsoft.NET\Framework...

2018-09-10 09:27:48 620

转载 网狐6603 修改不了数据库存储过程

原因可能是数据库被加密了–SQLSERVER加密存储过程–注意:加密存储过程前应该备份原始存储过程,且加密应该在部署到生产环境前完成!!–存储过程的内容不会被轻易看到(虽然解密也是有可能的)。应用这个,我们可以对某些关键的存储过程进行加密。但此时,存储过程仍然能被execute、alter和drop。USE praticego/**********测试表*************...

2018-09-10 09:26:41 8302

转载 网狐 中心服务器 ADO 错误:0x80004005,[DBNETLIB][ConnectionOpen (Connect()).]SQL Server 不存在或拒绝访问。

【 2012-12-0310:44:06 】ADO 错误:0x80004005,[DBNETLIB][ConnectionOpen(Connect()).]SQL Server 不存在或拒绝访问。【 2012-12-0310:44:06 】游戏列表加载失败【 2012-12-0310:44:06 】调度引擎外挂服务启动失败【 2012-12-0310:44:06 】中心服务启动失败...

2018-09-10 09:25:26 1950

转载 SQL Server基础之存储过程

原文地址:https://www.cnblogs.com/selene/p/4483612.html#_label0阅读目录一:存储过程概述 二:存储过程分类 三:创建存储过程 1.创建无参存储过程 2.修改存储过程 3.删除存储过程 4.重命名存储过程 5.创建带参数的存储过程  简单来说,存储过程就是一条或者多条sql语句的集合,可视为批处理文件,但是其作用不仅限于批处...

2018-09-10 09:24:17 139

image_to_video.rar

python图片转视频

2019-06-08

cscope 15.8b 版本 windows 二进制包

cscope 15.8b 版本 windows 二进制包 无需编译 直接使用

2018-11-07

duilib初探

duilib初探

2017-08-24

Effective Modern C++

Effective Modern C++ kindle电子书 mobi

2017-08-24

the linux programming interface mobi

the linux programming interface, mobi kindle电子书

2017-08-24

windows C++ socket库 外国人写的 带demo

windows C++ socket库 外国人写的 带demo

2017-06-07

国外牛人 API hook API 钩子 源码库

国外牛人 API hook API 钩子 源码库

2015-06-10

C++ dll注入 程序注入 示例代码

C++ dll注入 程序注入 示例代码

2015-06-10

Tkinter 快速入门

Tkinter 快速入门 Tkinter 快速入门 Tkinter 快速入门 Tkinter 快速入门 Tkinter 快速入门 Tkinter 快速入门

2010-06-06

the c++ programming language

the c++ programming language the c++ programming language the c++ programming language the c++ programming language the c++ programming language the c++ programming language

2010-06-06

经典 Effective C++

经典 Effective C++ 经典 Effective C++ 经典 Effective C++ 经典 Effective C++ 经典 Effective C++ 经典 Effective C++

2010-06-06

经典 C++ template

经典 C++ template 经典 C++ template 经典 C++ template 经典 C++ template 经典 C++ template 经典 C++ template

2010-06-06

经典 C++ 标准程序库

C++ 标准库 C++ 标准库 C++ 标准库 C++ 标准库 C++ 标准库 C++ 标准库

2010-06-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除