今天摸索了下 HTTPS 的证书生成,以及它在 Nginx 上的部署。由于博客托管在 github 上,没办法部署证书,先记录下,后续有需要方便快捷操作。本文的阐述不一定完善,但是可以让一个初学者了解大致的原理,同时跟着操作可以为自己的博客/网站部署一个 HTTPS 证书。 网站部署 HTTPS 的 ...
分类:
Web程序 时间:
2017-05-14 16:14:44
阅读次数:
315
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 140 Accepted Submission(s): 74 Problem Descrip ...
分类:
其他好文 时间:
2017-05-08 22:01:12
阅读次数:
243
Django视图函数 Django 前端 如果想给每条视图函数加验证只需要导入 from django.contrib.auth.decorators import login_required 给每个视图函数加上@login_required ...
分类:
其他好文 时间:
2017-05-08 21:55:14
阅读次数:
187
题目:Perfect Squares 给定一个正整数n,找到总和为n的最小数量的完美平方数(例如,1,4,9,16,...)。 For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n = 13, return 2 bec ...
分类:
其他好文 时间:
2017-05-08 14:24:32
阅读次数:
141
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2017-05-07 17:44:02
阅读次数:
199
/* 以前做的一道水题,再做精度控制又出了错///。。。 */ 题目大意: 求最大完全平方数,一个数b(不超过int范围),n=b^p,使得给定n,p最大; 题目给你一个数n,求p ; 解题思路: 不需要遍历b,只需要从31开始遍历p就好了。这个方法涉及到我以前过分逃避的精度控制问题:本题会使用函数 ...
分类:
其他好文 时间:
2017-05-06 11:40:36
阅读次数:
171
The Perfect Stall Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 19174 Accepted: 8696 Description Farmer John completed his new barn just ...
分类:
编程语言 时间:
2017-04-25 23:27:27
阅读次数:
320
Euclid's Game Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2907 Accepted Submission(s): 1335 P ...
分类:
其他好文 时间:
2017-04-25 20:02:11
阅读次数:
222
接触python也有一段时间了,一提到python,可能大部分pythoner都会想到爬虫,没错,今天我们的话题就是爬虫!作为一个小学生,关于爬虫其实本人也只是略懂,怀着”Done is better than perfect”的态度硬着头皮开始了这篇文章的撰写!好了,废话不多说! 先说一下今天我们 ...
分类:
编程语言 时间:
2017-04-25 19:55:45
阅读次数:
1224
请使用下列bash命令下载、编译和运行本项目: $ git clone https://github.com/PerfectExamples/Perfect-Markdown-Editor.git $ cd Perfect-Markdown-Editor $ swift build 如果运行成功,则 ...
分类:
其他好文 时间:
2017-04-25 14:56:48
阅读次数:
124