自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(54)
  • 资源 (5)
  • 收藏
  • 关注

原创 Centos7安装Mysql8

CentOS7 MySQL8

2022-08-01 20:34:00 254 2

原创 nginx安装及使用-MacOS

文章目录brew install nginx运行nginx配置nginx代理配置启动异常nginx实现反向代理brew install nginx$ brew install nginx ==> nginxDocroot is: /usr/local/var/wwwThe default port has been set in /usr/local/etc/nginx/ngi...

2020-04-19 17:10:48 1182

原创 Jwt+Gateway+nacos+redis实现免登录

文章目录整体实现响应设计redis设计登录操作中redis操作网关过滤登录路由项目jwt-api 公共接口类Maven定义实体类,统一返回类型AdminRJwtClientjwt-Gateway web项目Maven依赖跨域设置-定义CorsWebFilter的Beannacos服务注册 -application.ymljwt配置-application.properties????????JwtUtils工...

2020-04-15 14:04:57 3345 1

原创 linux安装及Parallels_Desktop_15安装

https://www.runaccepted.com/2020/03/30/linux安装文章目录Parallels Desktop 15 安装安装win10CentOS 7下载及配置查看ip-固定ipip相关配置文件Mac 连接linux防火墙yum源中加入阿里云源安装docker重启后docker无法启动克隆linuxMac 连接linux2再重启ssh拒绝 Connection refu...

2020-03-31 19:44:58 1606 1

原创 ElasticSearch安装

文章目录安装ElasticSearchlinux版ElasticSearch 存储和检索数据Logstash 收集数据保存到esKibana 可视化界面树莓派版elasticsearch-1.0.1Kibana-3.0.0logstash-2.0.0运行出错 libjffi-1.2.so创建Maven依赖logback-spring.xml运行SpringBoot安装ElasticSearch...

2020-03-29 17:45:46 535

原创 MyEclipse自动代码补全

window->Preferences->Java->Editor->Content Assistauto activaction -> Enable auto activation -> Auto Activation triggers for java “.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW...

2019-04-09 18:15:22 5890

原创 javaHTTP

文章目录反射XMLhtml-formHTTP协议requestresponsewebserver反射 //得到class类 //1. Class re = reflection.class; //2. re = new reflection().getClass(); //3. re=Class.forName("WebServer.reflection"); /...

2019-03-26 00:21:19 756

原创 javaIO

文章目录File编码,解码字节流字符流文件操作文件拷贝节点流对接工具FileUtils缓冲流字节缓冲流字符缓冲流数据流基本数据类型引用数据类型打印流文件分割CommonsIO#IO介绍对于数据的输入/输出以流方式进行一切以程序为中心程序到文件 输出流文件到程序 输入流流向:输入流,输出流功能:节点流,处理流节点流直接从数据源或目的地读写数据,位于IO操作第一线处理流...

2019-03-26 00:20:16 110

原创 java网络编程

文章目录底层概念地址端口号资源定位类InetAddressInetSocketAddressURIURLUDPTCPQQ底层概念将不同区域的计算机连接在一起局域网,城域网,广域网,互联网地址IP地址确定网络上的一个绝对地址(房子地址)端口号区分计算机软件 2个字节 0-65535bit (房间号)在同一个协议下,端口号不能重复1024以下的端口不能使用,80 http,21 f...

2019-03-26 00:19:26 168

原创 java多线程

文章目录多线程介绍创建线程继承Thread实现Runnable接口lambda优先级守护线程同步项目快乐影院CopyOnWriteArrayList死锁管程法信号灯法定时调度quartzvolitale可重入锁多线程介绍进程线程根本区别作为资源分配的单位调度和执行的单位开销每个进程都有独立的代码和数据空间(进程上下文),进程间的切换会有较大的开销线程可以看成...

2019-03-26 00:18:13 142

原创 java集合

JAVA文章目录JAVA版本集合ArrayListadd(E)remove(int index)LinkedListadd(E)add(int index,E element)remove(int index)get(index)addHashMaphashput(k,v)entrySetkeySetHashtablehashput(K,V)HashSetadd(E)iterator()Tree...

2019-03-26 00:17:09 121

原创 gets() 实战

gets:gets是用来输入一行字符串的,以“\n”识别输入结束,puts对应一行字符串输出。用法char str[100];gets(str);puts(str);实战采用c++编译器提交出现error: ‘gets’ was not declared in this scope gets(str);原因分析:gets函数是C语言中stdio库中内容,语...

2019-02-13 16:01:05 7055 2

原创 freopen无法读取问题

练习PAT时采用freopen编程 输出文件内容不正确    freopen("E:/Dev-Cpp/PAT/basic/1032/1032in.txt","r",stdin);    freopen("E:/Dev-Cpp/PAT/basic/1032/1032out.txt","w",stdout);刚开始以为是代码问题 手动终端输入 输出无问题修了半天bug竟是文件...

2019-02-13 14:45:50 3601 1

原创 文件后缀显示

win7文件显示后缀操作:组织-》文件夹和搜索选项-》查看-》擦除隐藏扩展名

2019-02-13 14:33:45 438

原创 PAT 1119.Pre- and Post-order Traversals(30 分)

Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences, or preorder and inorder ...

2018-09-05 12:23:59 177

原创 PAT 1120.Friend Numbers(20 分)

Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are friend numbers since 1+2+3 = 5+1 = 6, and 6 is their ...

2018-09-05 12:21:08 93

原创 PAT 1121.Damn Single(25 分)

"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.Input Specification:Each inpu...

2018-09-05 12:19:11 98

原创 PAT 1122.Hamiltonian Cycle(25 分

The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a "Hamiltonian cycle".In this problem, you are supposed to tell if a given cycle ...

2018-09-05 12:16:42 92

原创 PAT 1123.Is It a Complete AVL Tree(30 分

An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is...

2018-09-05 12:06:35 74

原创 PAT 1124.Raffle for Weibo Followers(20 分)

John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from every N followers who forwarded his post, and give...

2018-09-05 12:05:14 74

原创 PAT 1125.Chain the Ropes(25 分)

Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one piece, as shown by the figure. The resulting chai...

2018-09-05 12:02:41 109

原创 PAT 1126.Eulerian Path(25 分)

In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which starts and ends on the same vertex. They were firs...

2018-09-05 12:01:25 92

原创 PAT 1132.Cut Integer(20 分)

Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B = 334. It is interesting...

2018-09-05 11:59:26 86

原创 PAT 1107.Social Clusters(30 分)

When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A social cluster is a set of people who have some of thei...

2018-09-05 11:57:56 83

原创 PAT 1114.Family Property(25 分)

This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under his/her own name, we need to know the size of each f...

2018-09-04 13:00:54 100

原创 PAT 1127.ZigZagging on a Tree(30 分)

Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences. And it is a simple stand...

2018-09-04 12:47:28 280

原创 PAT 1112.Stucked Keyboard(20 分)

On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k times.Now given a result...

2018-09-04 12:44:47 117

原创 PAT 1128.N Queens Puzzle(20 分)

The "eight queens puzzle" is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, ...

2018-09-03 15:45:54 96

原创 PAT 1129.Recommendation System(25 分)

Recommendation system predicts the preference that a user would give to an item. Now you are asked to program a very simple recommendation system that rates the user's preference by the number of time...

2018-09-03 15:44:00 249

原创 PAT 1133.Splitting A Linked List(25 分

Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all the values in [0, K] appear before all those grea...

2018-09-03 15:40:09 101

原创 PAT 1134.Vertex Cover(25 分)

A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with several vertex sets, you are supposed to tell if e...

2018-09-03 15:31:10 79

原创 PAT 1135.Is It A Red-Black Tree(30 分)

There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties:(1) Every node is either red or black. (2) The root is black. (3) Every...

2018-09-03 15:22:49 341

原创 PAT 1136.A Delayed Palindrome(20 分)回文

Consider a positive integer N written in standard notation with k+1 digits a​i​​ as a​k​​⋯a​1​​a​0​​ with 0≤a​i​​<10 for all i and a​k​​>0. Then N is palindromic if and only if a​i​​=a​k−i​​ for...

2018-09-03 15:17:17 80

原创 PAT 1131.Subway Map(30 分)

In the big cities, the subway systems always look so complex to the visitors. To give you some sense, the following figure shows the map of Beijing subway. Now you are supposed to help people with you...

2018-09-03 15:05:23 252

原创 PAT 1130.Infix Expression(25 分)中缀表达式

Given a syntax tree (binary), you are supposed to output the corresponding infix expression, with parentheses reflecting the precedences of the operators.Input Specification:Each input file contai...

2018-09-03 14:59:58 179

原创 PAT 1118.Birds in Forest(25 分)并查集

Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the scientists to count the maxi...

2018-09-03 14:39:15 90

原创 PAT 1137.Final Grading(25 分)

For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no less than 200 points from...

2018-09-03 14:29:03 74

原创 PAT 1138.Postorder Traversal(25 分)

Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to output the first number of the postorder traversal se...

2018-09-02 17:15:41 283

原创 PAT 1139.First Contact(30 分)

Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a girl B, he would usually not contact her directly i...

2018-09-02 17:11:29 217

原创 PAT 1140.Look-and-say Sequence(20 分)

Look-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, ...where D is in [0, 9] except 1. The (n+1)st number is a kind of description of the nth n...

2018-09-02 17:04:11 120

3D Helicopter

基于OpenGL实现的3D飞机上下左右移动 通过上下左右前后六个摄像头分别观察飞机模型

2018-03-10

OpenGl项目

基于OpenGL插件 实现GLEventListener接口的2D项目 描绘了冬天及春天的景色特点

2018-03-10

DNA序列局部比对算法

Smith-Waterman 算法的实现 配对 错位 缺失后得到的分值

2018-03-09

图书后台管理系统

Swing图书管理系统 登录账号密码都为admin 实现图书管理和读者管理 编写了单元测试

2018-03-09

Java小游戏

仅实现飞机上下左右移动来躲避四面八方的子弹,游戏时间决定玩家级别。 更多的功能如多重关卡,背景音乐等仍需进一步开发。

2018-03-08

空空如也

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

TA关注的人

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