自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (20)
  • 收藏
  • 关注

原创 c++时区转换收集

#include #include #include #include void getTimeTmp(std::string &timeTmp, std::string timezone){    time_t current_timet;    time(&current_timet);//得到当前时间秒数    std::map tzone; 

2017-12-29 00:55:23 2251

转载 MySQL5.6中limit的工作机制和order by limit优化原理

MySQL5.6中Limit的工作机制如果你仅需要在一个结果集中返回特定的几行,通常是使用limit,而不是取回整个结果集再舍去不需要的数据,MySQL通常按照如下的方式优化一个包含limit row_count或HAVING的语句:◎只有limit如果你只通过limit返回少量的行,那么正常情况下mysql会使用全盘扫描,有些场合会使用索引,以下是使用了覆盖索引的情况:

2017-12-23 16:07:35 11191 2

转载 MySQL中的两种临时表

转自:http://mysql.taobao.org/monthly/2016/06/07/外部临时表通过CREATE TEMPORARY TABLE 创建的临时表,这种临时表称为外部临时表。这种临时表只对当前用户可见,当前会话结束的时候,该临时表会自动关闭。这种临时表的命名与非临时表可以同名(同名后非临时表将对当前会话不可见,直到临时表被删除)。内部临时表内部

2017-12-23 16:06:09 548

转载 mysql_相关收集

统计指定库表大小select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from information_schema.tables where table_schema='db_name' and table_name='table_name';查看mysql零时表配置show variables ...

2017-12-23 14:33:51 231

原创 clion_cmakelists收集

 cmake_minimum_required(VERSION 3.7)project(dbagent)set(CMAKE_CXX_STANDARD 98)set(CMAKE_CXX_FLAGS '-DMUDUO_STD_STRING -DUSE_CALL_RECORDER -g -Wno-old-style-cast -O2')set(COMMON_DIR ./../comm...

2017-12-22 23:44:13 617

转载 后端技术杂谈

大神传送门:http://www.rowkey.me/blog/2016/06/27/java-backend-study/之前自己总结过的Java后端工程师技能树,其涵盖的技术点比较全面,并非一朝一夕能够全部覆盖到的。对于一些还没有入门或者刚刚入门的Java后端工程师,如果一下子需要学习如此多的知识,想必很多人会望而却步。本文截取了技能树中的一些关键技能点,并辅以学习资料和书

2017-12-19 11:08:36 631 1

转载 Go最佳实践

来自NSQ

2017-12-18 20:04:45 1538

转载 UML类图快速入门篇

1、关联双向关联:C1-C2:指双方都知道对方的存在,都可以调用对方的公共属性和方法。在GOF的设计模式书上是这样描述的:虽然在分析阶段这种关系是适用的,但我们觉得它对于描述设计模式内的类关系来说显得太抽象了,因为在设计阶段关联关系必须被映射为对象引用或指针。对象引用本身就是有向的,更适合表达我们所讨论的那种关系。所以这种关系在设计的时候比较少用到,关联一般都是有向的。

2017-12-17 18:25:47 565 1

转载 UML类图入门,看完基本懂了怎么画图了

第一篇,原文链接http://blog.csdn.net/monkey_d_meng/article/details/6005764UML类图新手入门级介绍 举一个简单的例子,来看这样一副图,其中就包括了UML类图中的基本图示法。12 首先,看动物矩形框,它代表一个类(Class)。类图分三层,第一层显示类的名称,如果是抽象类,则就用斜体显示。第二层是类的特性,通常就是字

2017-12-17 18:20:23 184398 7

原创 go-代码收集-net/http客户端长连接

net/http客户端长连接   新建一个http client,后面复用这个client,借助go的高度集成包,来复用连接。 client.gopackage mainimport ( "crypto/tls" "io/ioutil" "log" "net/http" "sync")func main() { tr := &http.Tran

2017-12-10 20:50:54 1822

转载 [译]Go net/http 超时机制完全手册

目录 [−]SetDeadline服务器端超时设置http.ListenAndServe 的错误关于流客户端超时设置Cancel 和 Context英文原始出处: The complete guide to Go net/http timeouts, 作者: Filippo Valsorda当用Go写HTTP的服务

2017-12-08 16:53:22 447

转载 go net/http Client使用——长连接客户端的使用

go net/http Client使用总结Client数据结构// A Client is an HTTP client. Its zero value (DefaultClient) is a// usable client that uses DefaultTransport.//// The Client's Transport typically has inte

2017-12-06 15:46:40 22673

转载 Python多进程并发(multiprocessing)

由于Python设计的限制(我说的是咱们常用的CPython)。最多只能用满1个CPU核心。Python提供了非常好用的多进程包multiprocessing,你只需要定义一个函数,Python会替你完成其他所有事情。借助这个包,可以轻松完成从单进程到并发执行的转换。1、新建单一进程如果我们新建少量进程,可以如下:

2017-12-05 19:34:08 277

转载 脚本实现sum/avg/max/min-求文本中每行数字

我们假设data文件中每行是一个数字,我们来使用awk语言和perl语言对这些数字做求和、求平均、求最大、求最小等计算。【awk】求和cat data|awk '{sum+=$1} END {print "Sum = ", sum}'求平均值cat data|awk '{sum+=$1} END {print "Average = ", sum/NR}'求最大值cat data|awk 'BEGIN

2017-12-04 10:06:54 240

llvm-project-llvmorg-13.0.0-centos79-gcc11.1

1.centos7.9下编译 clang全家桶,压缩包中已编译好,centos79 下可以直接make install; 2.编译过程如下: wget https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-13.0.1.tar.gz tar -zxf llvmorg-13.0.1.tar.gz cd llvm-project-llvmorg-13.0.1 mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lldb;clang-tools-extra" -G "Unix Makefiles" ../llvm make # 这一步十分耗时,建议放后台跑 make install 3.备注 devtoolset-11:gcc11.1 llvm-project: clang clang lldb等

2023-10-31

fl2000dx usb3.0 driver for mac

自持最新的mac os多个显示器扩展显示不同画面

2019-03-10

usql-0.7.0-linux-amd64.tar.bz2

Release v0.7.0 fixes issues with syntax highlighting, initial support for Cassandra databases via CQL, and general code cleanup. The major changes: Cassandra (CQL) support Syntax highlighting fixes Added -v / --set command line parameter (compatibility with psql) Added "batch query" support for databases (ql + cql) Fixed issues with query prefix detection / parsing Switched from dep to vgo for dependency management

2018-06-22

usql-0.7.0-windows-amd64 (1).zip

Release v0.7.0 fixes issues with syntax highlighting, initial support for Cassandra databases via CQL, and general code cleanup. The major changes: Cassandra (CQL) support Syntax highlighting fixes Added -v / --set command line parameter (compatibility with psql) Added "batch query" support for databases (ql + cql) Fixed issues with query prefix detection / parsing Switched from dep to vgo for dependency management

2018-06-22

myhttpd_muduo

# My simple Httpd demo ## 1.using muduo for simple GET request ## 2.CGI demo refer to tiny httpd

2018-01-14

golang_compare

golang_compare Small util to campare two files and get result

2018-01-11

令牌桶算法c实现

Token Bucket Emulation in C using Multithreading This project involved emulation of the Token Bucket algorithm using POSIX threads in C. The aim was to simulate a traffic shaper that receives and transmits packets to a server, while being controlled by a token bucket filter. There were three major components of the system : 1. The input queue that received the packets 2. The token bucket that received the tokens 3. The output queue that send the packets to the server

2017-11-29

ucmq项目中准备加一个HTTP的队列服务

ucwb-ucmq 轻量级消息队列,ucmq,http通用接口 项目中准备加一个HTTP的队列服务

2017-11-28

everything-curl http libcurl

everything-curl http libcurl client 文档,积累了libcurl使用过程中各种使用方法

2017-11-07

curlcpp-httpclient

C++ wrapper around libcURL http://www.curlpp.org, http client

2017-11-07

Story-writer-win64-setup

小书匠 markdown 小书匠 markdown 小书匠 markdown

2017-10-31

linux restful工具

linux restful工具

2017-06-01

w7 restful客户端

w7 restful客户端

2017-06-01

go程序设计源码

go程序设计源码

2016-09-26

phpexcel第三方库

phpexcel第三方库

2016-09-15

rar 64位最新版

2016-09-15

rarlinux下让人解压

2016-09-14

Linux Shell脚本攻略(第2版)

本书结合丰富的实际案例介绍了如何利用shell命令快速开发常规任务,如何凭借短短几个命令行从Web挖掘数据的shell脚本,如何通过srlell脚本设置以太网和无线LAN,以及如何利用少量命令的组合完成诸如文本处理、文件管理、备份等复杂的数据管理工作等。

2016-08-07

centos yum.repo.d

centos yum.repo.d yum常用的桌面的yum配置文件

2016-05-15

mogodb权威指南中文版.pdf

monogodb

2016-05-14

go1.6.windows-386.msi part1

go1.6.windows-386.msi part1

2016-03-26

空空如也

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

TA关注的人

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