github-stars

Stars

jlevy/the-art-of-command-line
jwasham/coding-interview-university
justjavac/free-programming-books-zh_CN
sorenduan/awesome-java-books
doocs/source-code-hunter
kamranahmedse/developer-roadmap
shfshanyue/op-note
doocs/technical-books
doocs/advanced-java
michaelliao/awesome-python-webapp
Blankj/awesome-java-leetcode
521xueweihan/HelloGitHub
microsoft/calculator
itisyang/playerdemo
MisterBooo/LeetCodeAnimation
ZhongFuCheng3y/3y
EasyPost/easypost-java
muhammederdem/vue-interactive-paycard
muhammederdem/mini-player
macrozheng/mall-swarm
antvis/G2Plot
liyasthomas/postwoman
vuejs/cn.vuejs.org
ppoffice/hexo-theme-icarus
komeiji-satori/Dress
jackfrued/Python-100-Days
hollischuang/toBeTopJavaer
gabrielbull/php-ups-api
PanJiaChen/vue-element-admin
Snailclimb/JavaGuide
QianGuoqing/vue-qabler
bailicangdu/vue2-elm
bhnddowinf/vuejs2-learn
kubernetes/ingress-nginx
spring-cloud/spring-cloud-kubernetes
ElemeFE/element
kubernetes/kubernetes
codecentric/spring-boot-admin
ghostchina/Roon-zh
ghostchina/Casper-zh
wenkeShi/ghost-caspro
Sioxas/vue-music
bluefox1688/vue-cli-multi-page
lincenying/vue2-multiple-entry
sqshq/piggymetrics
dyc87112/SpringCloud-Learning
forezp/SpringCloudLearning
deepfakes/faceswap
takezoe/amateras-modeler
Skyexu/TopSup
jmnarloch/ribbon-discovery-filter-spring-cloud-starter
alibaba/p3c
apache/incubator-brpc
thx/RAP
cloudframeworks-springcloud/user-guide-springcloud
lihengming/spring-boot-api-project-seed
takari/maven-wrapper
alibaba/druid
iluwatar/java-design-patterns
kdn251/interviews
otale/tale
alibaba/fastjson
mybatis/spring-boot-starter
portainer/portainer
tiimgreen/github-cheat-sheet
EbookFoundation/free-programming-books
litten/hexo-theme-yilia
dangdangdotcom/dubbox
apache/dubbo
angular/angular-seed
angular/angular2-seed
mybatis/spring
mybatis/generator
iissnan/hexo-theme-next
angular/quickstart
snapappointments/bootstrap-select
uglide/RedisDesktopManager
jhipster/generator-jhipster
t4t5/sweetalert
giantray/stackoverflow-java-top-qa
akullpp/awesome-java
google/guava
chartjs/Chart.js
qibaoguang/Spring-Boot-Reference-Guide
spring-projects/spring-boot
reactjs/react-router-tutorial
dangrossman/daterangepicker
fragaria/angular-daterangepicker
ColorlibHQ/AdminLTE
apidoc/apidoc
mousycoder/server-api
quartz-scheduler/quartz
xishuixixia/quartz-monitor
tavenli/URACS
gulpjs/gulp
learning/SublimeServer
http-party/http-server
google/styleguide
ocombe/ocLazyLoad
HubSpot/pace
younghz/Markdown
xetorthio/jedis
og/gulp-book
dotnet/core
yeoman/generator-angular
yeoman/yeoman
jirikavi/AngularJS-Toaster
onokumus/metismenu
angular-ui/ui-select
angular-ui/ui-router

git-upgrade

1. 安装yum源

centos7:
wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm && rpm -ivh wandisco-git-release-7-1.noarch.rpm
or
wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm && rpm -ivh wandisco-git-release-7-2.noarch.rpm

2. 安装git 2.x

yum install git -y

3. 验证

git –version

hexo-tags

分类标签中关于大小写的bug

1. 描述

当我的分类标签写的是Scrapy时,打开我的博客找到Scrapy标签,点击Scrapy却出现404页面。
当我把标签改为scrapy小写,再发布到网上,点击scrapy就不会出现404问题。
后来发现原来是git标签生成时忽略了大写,生成的实际标签为scrapy。
于是我来到我的Github中,找到Gladysgong.github.io/categories/爬虫/这个目录,发现实际生成的也是scrapy,所以
原因就在这里了。

2. 解决

1
2
3
4
5
6
7
8
9
10
11
12
13
# 修改文件:
cd blog/.deploy_git
vi .git/config
将ignorecase=true改为ignorecase=false
# 删除Gladysgong.github.io中的文件并提交:
git rm -rm *
git commit -m "clean all files"
git push
# Hexo再次生成及部署:
cd ..
hexo clean
hexo g
hexo d

参考:http://gongyanli.com/Hexo%E5%88%86%E7%B1%BB%E6%A0%87%E7%AD%BE%E4%B8%AD%E5%85%B3%E4%BA%8E%E5%A4%A7%E5%B0%8F%E5%86%99%E7%9A%84bug/

git-delete-tags

查看远程Tag

git ls-remote –tags

删除远程主机指定Tag

git push origin :refs/tags/

书籍

分类

作者

图片

简介

链接

《错位》

《影响力》

《明朝那些事儿》

互联网大事记

序言

这是一个网络互联时代,这是一个网络经济时代,网络带来的微小而持续的变化改变了自工业时代以来的每一个人的行为方式,从而产生了新的经济发展模式。互联网不仅仅是将各种计算设备连到一起为人类提供了一种新的通信手段,而是从文化、经济和政治等方面根本地改变了我们的社会,并且带动了世界文明的进步。

如今,我们的学习、工作和生活的方方面面都离不开互联网。有了互联网,我们可以尽情在知识的海洋中遨游;有了互联网,我们可以轻松在琳琅满目的商店中穿梭;有了互联网,我们可以结交到素未谋面的志趣相投的朋友。

互联网如此之大,以至于它不是一个人、一个研究机构或公司,甚至不是一个国家的发明,而是整个世界共同贡献的结果。

互联网就像吃饭和睡觉一样,成为了必需品

最近30年互联网行业发展纪要,时间线 1998 - 2008 - 2018 - 2028

年份 - 概要 - 行业专题

每年要点:

  • 时代背景
  • 经济趋势
  • 网络状况
  • 电脑市场
  • 手机市场
  • 成立的公司
  • 上市的公司
  • 巨头动作
  • 音乐
  • 国内竞争对手情况
  • 国际竞争对手情况

波澜壮阔
风云变幻

音乐

按年份

2018

体面 于文文
最美的期待 周笔畅
That Girl Olly Murs
倒数 邓紫棋
广东爱情故事 广东雨神
醉赤壁 林俊杰
说散就散 袁维娅
不染 简弘亦
盗将行 马玉阳
光年之外 邓紫棋
往后余生 马良
病变 鞠文娴
年少有为 李荣浩
一百万个可能 Christine Welch
请先说你好 贺一航
离人愁 李袁杰
走马 陈一发儿
东西 林俊呈
一曲相思 半阳
小半 陈粒
西安人的歌 范炜与程渤智
风筝误 刘珂矣
红昭愿 音阙诗听
春风吹 阿冷
怀念青春 刘刚

按歌手

按类别

轻音乐

舒缓 睡眠 解压

MySQL索引

索引
基数:索引区分度,采样统计
数据页
变更触发索引统计
重新统计索引信息命令:analyze table t

优化器选择索引
扫描行数

explain
强制使用索引 force index(a)
设置慢查询SQL阈值 set long_query_time=0;
全表扫描

前缀索引
字符串字段创建索引

通用工具导航

PDFBox使用指南

1. 介绍

Apache PDFBox是一个开源Java库,支持PDF文档的开发和转换。使用该库可以开发创建,转换和操作PDF文档的Java程序。

2. 特性

  • 提取文本 - 使用PDFBox,您可以从PDF文件中提取Unicode文本。
  • 拆分和合并 - 使用PDFBox,您可以将单个PDF文件分成多个文件,并将它们作为单个文件合并。
  • 填写表单 - 使用PDFBox,您可以填写文档中的表单数据。
  • 打印 - 使用PDFBox,您可以使用标准Java打印API打印PDF文件。
  • 另存为图像 - 使用PDFBox,您可以将PDF保存为图像文件,如PNG或JPEG。
  • 创建PDF - 使用PDFBox,您可以通过创建Java程序创建新的PDF文件,还可以包括图像和字体。
  • 签名 - 使用PDFBox,您可以将数字签名添加到PDF文件。

3. 引入

1
2
3
4
5
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.17</version>
</dependency>

4. 应用示例

4.1 PDFBox指定位置添加文本

指定字体文件simsun.ttf支持添加中文文本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PDDocument doc = null;
try {
File file = new File("C:\\origin.pdf");
doc = PDDocument.load(file);

String fontFilePath = "C:\\simsun.ttf";
PDType0Font font = PDType0Font.load(doc, new File(fontFilePath));

PDPage page = doc.getPage(0);
PDPageContentStream contentStream = new PDPageContentStream(doc, page, PDPageContentStream.AppendMode.PREPEND,
true);
contentStream.beginText();
contentStream.setFont(font, 10);
float offsetx = 40;
float offsety = 105;
contentStream.newLineAtOffset(offsetx, offsety);
contentStream.showText("hello, world");
contentStream.endText();
contentStream.close();

doc.save("C:\\result.pdf");

doc.close();
} catch (IOException e) {
// TODO handle exception
}
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×