pipiang
码龄8年
关注
提问 私信
  • 博客:29,044
    29,044
    总访问量
  • 45
    原创
  • 2,302,744
    排名
  • 8
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:江苏省
  • 加入CSDN时间: 2017-04-22
博客简介:

pipiang的博客

查看详细资料
个人成就
  • 获得11次点赞
  • 内容获得1次评论
  • 获得34次收藏
创作历程
  • 1篇
    2021年
  • 1篇
    2019年
  • 43篇
    2018年
成就勋章
TA的专栏
  • 物联网相关
    1篇
  • java基础
    10篇
  • 数据结构与算法
    3篇
  • 面试题整理
    6篇
  • 设计模式
    5篇
  • JS
    1篇
  • linux学习
    3篇
  • leetcode
    13篇
  • 计算机网络
  • 尚筹网项目记录
    1篇
  • 常用工具
    1篇
兴趣领域 设置
  • 大数据
    mysql
创作活动更多

超级创作者激励计划

万元现金补贴,高额收益分成,专属VIP内容创作者流量扶持,等你加入!

去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

MQTT同步通信实现

mqtt是发布订阅机制,消息发送方无法立即知道消息订阅方的返回消息。在一些场景下比如我通过mqtt给某温度传感器下发命令读取该设备的温度数据这时需要同步得到温度传感器返回的数据,这就需要把异步请求转化为同步请求。下面参考https://www.cnblogs.com/goodAndyxublog/p/12393723.html所描述mq方案来实现。1.方案整体流程1.发送mqtt消息生成DefaultFuture,等待返回消息。DefaultFuture的实现原理即为dubbo中..
原创
发布博客 2021.07.24 ·
8265 阅读 ·
5 点赞 ·
1 评论 ·
23 收藏

jmeter使用

简单记录使用jmeter测压1.jmeter下载安装略过2启动jmeter 安装在windows系统上 2.1 apache-jmeter-5.0\bin\jmeter.bat文件双击启动(此时屏幕会出现cmd窗口正常现象)成功启动界面2.2 设置语言中文(默认英文)3使用举例  300并发测试百度3.1 添加线程组   3.1.1配置线程组参数 3...
原创
发布博客 2019.01.30 ·
564 阅读 ·
2 点赞 ·
0 评论 ·
3 收藏

leetcode: Array标签题整理

2. Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two nu...
原创
发布博客 2018.06.30 ·
485 阅读 ·
1 点赞 ·
0 评论 ·
2 收藏

String类学习

需求:使用toString方法时将对象数组的地址打印出来这个横简单代码如下public class info{ public static void main(String[] args) { List<info> list = new ArrayList<>(); for(int i=0;i<5;i++) { list.add(new i...
原创
发布博客 2018.06.23 ·
212 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

1-项目介绍与SSM框架搭建

一 maven工程搭建架构图:有一个maven父工程来管理公司用到的所有包pom.xml<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/...
原创
发布博客 2018.06.16 ·
346 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 125,136,141,155

125. Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.Note: For the purpose of this problem, we define empty string as valid...
原创
发布博客 2018.05.05 ·
163 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 121,122

121. Best Time to Buy and Sell StockSay you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (i.e., buy one...
原创
发布博客 2018.05.04 ·
466 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

leetcode 110,111,112,118,119

110. Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as:a binary tree in which the depth of the two subtrees of e...
原创
发布博客 2018.05.03 ·
243 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 101,104,107,108

101. Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / ...
原创
发布博客 2018.05.01 ·
310 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 88,100

88. Merge Sorted ArrayGiven two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:The number of elements initialized in nums1 and nums2 are m and n respectively.Yo...
原创
发布博客 2018.04.30 ·
176 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 70,83

70. Climbing StairsExample 2:Input: 3Output: 3Explanation: There are three ways to climb to the top.1. 1 step + 1 step + 1 step2. 1 step + 2 steps3. 2 steps + 1 step斐波那契数列方法一备忘录算法 int[] map = ne...
原创
发布博客 2018.04.28 ·
127 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode66,67

66. Plus OneGiven a non-empty array of digits representing a non-negative integer, plus one to the integer.The digits are stored such that the most significant digit is at the head of the list, and ea...
原创
发布博客 2018.04.27 ·
500 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 53,58

53. Maximum SubarrayGiven an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.Example:Input: [-2,1,-3,4,-1,2,1,-5,4],Outp...
原创
发布博客 2018.04.26 ·
148 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 35,38

35. Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no du...
原创
发布博客 2018.04.25 ·
174 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 27,28

Given an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must do this by modifying the input array ...
原创
发布博客 2018.04.24 ·
133 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 21,26

 Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->4, 1->...
原创
发布博客 2018.04.23 ·
140 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode1,7,9,14,20

 Two SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the...
原创
发布博客 2018.04.22 ·
134 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

d2-用户和组管理

文件管理:    cp,mv,rm cp  [root@izm5e5qf7n47jhwufk5eo9z ~]# cp --help         Usage: cp [OPTION]... [-T] SOURCE DEST         or:  cp [OPTION]... SOURCE... DIRECTORY         or:  cp [OPTION]... -t DIRECTOR...
原创
发布博客 2018.04.14 ·
569 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

d2-linux的文件系统

linux的文件系统/etc /user /var /root /home /dev /boot: 引导文件存放目录,内核文件(vmlinuz)引导加载器(bootloader,grub) /bin:  共所有用户使用的基本命令:不能关联到独立分区,os启动用到的程序/sbin: 管理类的基本命令:不能关联至独立分区,os启动即会用到的程序 /lib:基本库文件,以及内核模块(/lib/modul...
原创
发布博客 2018.04.13 ·
198 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

linux-d1-基础命令

CentOS 6默认启动6个虚拟终端ctrl+alt+f#:[1,6]查看当前终端设备:tty显示当前使用的shell # echo ${shell}命令提示符:prompt: # 管理员 $ 普通用户命令:    which 查看ls脚本位置[root@izm5e5qf7n47jhwufk5eo9z ~]# which lsalias ls='ls --color=auto'        /u...
原创
发布博客 2018.04.13 ·
857 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏
加载更多