自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (7)
  • 收藏
  • 关注

原创 maven build 错误问题解决方法

勾选Update Snapshots,重新执行 maven build 问题解决:编译成功:

2023-04-14 18:52:29 328

原创 解决 springboot mybatis junit 提示 Invalid bound statement 问题

springboot使用 junit 测试 mybatis 提示 Invalid bound statement 问题,不修改xml文件位置的解决办法

2022-10-31 19:02:03 542

原创 MQTT.fx 1.7.1 选择证书路径点击无效的问题

MQTT.fx 1.7.1存在由于以前配置证书路径不存在,导致点击选择无效的问题:解决办法,删除操作系统中以下路劲的 mqttfx-config.xml 文件,重新打开软件,即可:Mac OSX[USER_HOME]/Library/Application Support/MQTT-FX/scriptsWindows[USER_HOME]\AppData\Local\MQTT-FX\scriptsLinux[USER_HOME]/MQTT-FX/scripts...

2021-07-29 16:05:26 680 1

原创 java UTC时间转本地时间

String pattern = "yyyyMMddHHmmss";Locale locale = Locale.getDefault();DateFormat format = new SimpleDateFormat(pattern, locale);format.setTimeZone(TimeZone.getTimeZone("UTC"));Date dattime = format.parse("20210115112325");format.setTimeZone(TimeZone.g

2021-01-15 12:07:03 399

原创 python打印所有时区

from datetime import datetimeimport pytzALL_TIMEZONE_CHOICES = tuple(zip(pytz.all_timezones, pytz.all_timezones))COMMON_TIMEZONE_CHOICES = tuple(zip(pytz.common_timezones, pytz.common_timezones))PRETTY_TIMEZONE_CHOICES = []for tz in pytz.common_tim

2021-01-11 19:03:09 633 1

原创 Ubuntu16.04安装python3.7及相应的pip

步骤1:在python官网找到python-3.7.1.tgz的地址:https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz步骤2:下载安装包wgethttps://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz步骤3:解压安装包tar -zxvfPython-3.7.1.tgz步骤4:切换到解压后的目录下cdPython-3.7.1步骤5:./conf...

2021-01-08 14:37:23 350

原创 Python遍历列表数据结构的三种方法

response = [{'Name': 'sub', 'Value': 'd7545d1b-bf78-424b-ab06-8b0f5809513a'}, {'Name': 'zoneinfo', 'Value': 'Afghanistan'}, {'Name': 'email_verified', 'Value': 'false'}, {'Name': 'email', 'Value': '[email protected]'}]for i

2020-12-16 19:43:07 680

原创 Python 3.7 重命名文件

Python 3.7 重命名文件import osfor root, dirs, files in os.walk("C:\\Users\\Administrator\\Desktop\\证书\\"): for f in files: srcFile = os.path.join(root, f) dstFile = srcFile.split("_")[0] + os.path.splitext(srcFile)[-1] print(srcFi

2020-11-26 14:20:26 94

原创 AWS Lambda pyOpenSSL 层打包方法

亚马逊Lambda pyOpenSSL 层生成方法:pip3 install --target ./pyOpenSSL pyOpenSSLcd pyOpenSSL/zip -r9 ${OLDPWD}/pyOpenSSL.zip .下载pyOpenSSL.zip,解压文件到pyOpenSSL文件夹,重命名为python,重新压缩生成层。

2020-11-24 21:10:57 125

原创 python时间戳转UTC时间

import datetimeutc_time = datetime.datetime.utcfromtimestamp(1604473706)stadardTime = utc_time.strftime("%Y-%m-%d %H:%M:%S")print(stadardTime)输出结果:2020-11-04 07:08:26

2020-11-04 15:44:52 5485

原创 python 参数经过透传给目标方法

def zhongjian(parma1, parma2, *args, **kwargs): print("zhongjian parma1: ", parma1, "parma2: ", parma2) print("zhongjian args: ", args) print("zhongjian kwargs: ", kwargs) mubiao(parma1, parma2, *args, **kwargs)def mubiao(parma1, parma2,

2020-10-29 14:15:39 977

原创 16.04不能远程解决办法

"首先安装xfce:sudo apt-get updatesudo apt-get install xfce4如果网速较慢,这会持续一段时间。然后安装xrdp组件和vnc服务器:sudo apt-get install xrdp vnc4serversudo apt-get install xubuntu-desktop安装好后要自行新建配置文件,使得在远程登录时默认使用xfce作为界面登录,然后重启xrdp服务:echo “xfce4-session” >~/.xsessionsu

2020-07-06 15:02:30 199

原创 android adb logcat 自动 remount 抓日志

@echo off:remountadb remountif %errorlevel% neq 0 (echo “adb remount fail ! press anykey exit !”choice /T 2 /C ync /CS /D y /ngoto remount;)if not exist F:\logspace\sms_* goto startdodel /a /f /q F:\logspace\sms_*:startdoadb logcat -cset dated

2020-07-04 15:39:51 150

原创 docker 进入容器的脚本文件

#!/bin/bashsudo nsenter --target $(docker inspect --format '{{.State.Pid}}' $1) -m -u -i -n -p调用方法:./in.sh dockerid

2020-07-04 15:10:59 388

原创 Linux c++ socket 客户端测试代码

#include <sys/stat.h>#include <fcntl.h>#include <errno.h>#include <netdb.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <stdio.h>.

2020-07-04 13:43:30 222

原创 java打印方法的堆栈调用信息

System.err.println("Digester构造函数被调用#############################################"); for (StackTraceElement stack : stacks) { System.err.println(stack.getClassName() + "\t\t\t\t" + stack.getMethodName()); }

2020-06-15 10:12:09 1052

原创 LINUX查看系统、资源、磁盘和分区、网络、进程、用户

系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo# 查看CPU信息# hostname # 查看计算机名# lspci -tv# 列出所有PCI设备# lsusb -tv# 列出所有USB设备# lsmod# ...

2020-05-09 22:18:17 1056

原创 百度地图轨迹纠偏服务接口调用

package com.test.demo;import java.util.Date;import net.sf.json.JSONArray;import net.sf.json.JSONObject;import org.apache.commons.httpclient.NameValuePair;import com.ucee.test.app.WSClient;...

2019-08-12 11:25:05 4728 2

原创 android发送广播可以静态接收需要增加的FLAG_RECEIVER_INCLUDE_BACKGROUND

Intent i = new Intent();i.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);i.setAction("com.android.intent.test");mContext.sendBroadcast(i);

2019-04-19 17:44:25 6635

原创 android 打印按钮的 selector 状态

@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) { Log.e(TAG, "onKeyDown isEnabled " + pressButton.isEnabled() + ", isFocused " + pressButton.isFocused() + ",isPressed " + pressBut...

2019-03-15 09:47:38 277

原创 深入Log4J源码之Log4J Core

学习日志控件,推荐上善若水的文档,备忘:1、深入Log4J源码之Log4J Corehttp://www.blogjava.net/DLevin/archive/2012/06/28/381667.html2、深入源码之Commons Logginghttp://www.blogjava.net/DLevin/archive/2012/11/04/390755.html...

2018-10-19 15:23:57 1212

原创 MyEclipse 10 中 tomcat-7.0.67-4 日志输出配置

1、配置前运行日志2、配置运行参数-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Djava.util.logging.config.file="{tomcat主目录}\conf\logging.properties"3、配置后运行日志...

2018-10-18 20:24:41 547

原创 VirtualBox虚拟机CentOS-7、ubuntu-16.04相关资源

1、CentOS-7-x86_64-DVD-1708https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso2、ubuntu-16.04.5-desktop-amd64http://uni.mirrors.163.com/ubuntu-releases/16.04/ubuntu-16.04....

2018-08-23 17:19:06 301

原创 ubuntu 12 安装openJDK 8 报错libnss3

1、添加软件库的源信息至sources.list中sudo vi /etc/apt/sources.list光标移动到文件末端,按i编辑deb http://security.ubuntu.com/ubuntu precise-security main按esc退出编辑模式,输入:wq保存并退出2、更新软件库sudo apt-get update3、安装...

2018-08-23 15:38:33 314

原创 CentOS 7 关闭 rpcbind 服务

1、关闭 rpcbind 服务sudo systemctl disable rpcbind2、关闭开机自启动sudo systemctl disable rpcbind3、立即执行关闭systemctl stop rpcbind.socket4、 验证是否监听netstat -anup备注:systemctl list-sockets 可查看系统正在实现套接字...

2018-08-09 14:09:22 12431

原创 docker 获取容器日志 LogPath、IPAddress

1、获取docker容器的日志路径:docker inspect --format '{{.LogPath}}' $INSTANCE_ID2、获取容器的IPAddress:docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'$INSTANCE_ID其他...

2018-08-08 14:34:16 2724

原创 局域网 Ubuntu 16.04.4 安装 Docker 18.06.0-ce 笔记

局域网内搭建Ubuntu环境下的Docker Engine 17.06.0+ 、Docker Compose 1.14.0+ 的环境运行项目,网上查找到很多方法,但是安装总有报错。解决报错办法: 1、下载了docker-ce_18.06.0~ce~3-0~ubuntu_amd64.deb安装包,执行安装命令: dpkg -i docker-ce_18....

2018-08-08 10:41:22 2858

原创 Eclipse: The project description file (.project) is missing

重装系统后打开盘符发生变化,eclipse打开项目提示:The project description file (.project) for 'XXX' is missing. This file contains important information about the project. The project will not function properly until t...

2018-08-02 11:29:37 1776

原创 Android 相机应用图像数据流 NV21旋转代码

public static byte[] rotateYUV420Degree90(byte[] input, int width, int height, int rotation) {int frameSize = width * height;int qFrameSize = frameSize / 4;byte[] output = new byte[frameSize + 2 * ...

2018-03-09 19:03:12 1718 1

jadx-gui-dev.exe

jadx是个人比较喜欢的一款反编译利器,同时支持命令行和图形界面,能以最简便的方式完成apk的反编译操作。

2020-07-18

MyEclipse下Tomcat_7.0.78源码,可以直接运行

Tomcat_7.0.78在Myeclipse中可以直接运行的Project,JDK使用的是1.7.0_17(1.6JDK不能编译通过),适合学习tomcat源码使用!

2018-11-01

openjdk-6-src-b27-26_oct_2012

openjdk-6-src-b27-26_oct_2012.zip openjdk-6 源码资源

2018-09-12

TCP调试助手(V1.9)|TCP/UDP Socket调试工具

TCP调试助手是一个辅助调试UDP/TCP的工具软件,支持TCP Server、TCP Client、UDP等通信模式,为网络调试提供方便。

2018-08-21

Docker容器清理日志脚本

清理docker日志的脚本,方便维护使用,支持单个清理和全部清理。

2018-08-08

docker-ce_18.06.0~ce~3-0~ubuntu_amd64

docker-ce_18.06.0~ce~3-0~ubuntu_amd64.deb 软件安装包

2018-08-08

定时查询docker镜像和容器的脚本

#!/bin/bash custtime=10 printLog(){ for((i=1; i <= 150; i++)); do echo -e "=\c"; done; if [ -z "$1" ] ; then blankline fi } blankline(){ echo } dockerLog(){ printLog docker images echo -e "\n" docker ps -a printLog blankline } printTimer(){ if [ -z "$1" ] ; then dockerLog return; fi if [ ! -z "$2" ] ; then custtime="$2" fi for((j=1; j<="$1"; j++ )); do echo "总共查询$1次,间隔时间$custtimt秒,当前是第次:$j" dockerLog if [ "$1" -ne "$j" ] ; then sleep "$custtime" fi done } printTimer $1 $2

2018-08-08

空空如也

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

TA关注的人

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