![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后端开发
文章平均质量分 63
嘿哈哈哈
人生就像一场演出,不到谢幕永远不知道自己有多精彩。
展开
-
Difference between .ipp & .cpp
.ipp is used for template class and will be include in its header file.Before templates, you put the declarations of methods in the header file and the implementation went to a .cpp file. These files were compiled separately as their own compilation unit.原创 2022-09-26 11:59:37 · 197 阅读 · 0 评论 -
C++: Conan
【代码】C++: Conan。原创 2022-09-26 11:57:49 · 420 阅读 · 0 评论 -
C++: Make, CMake, Ninja, Conan
甚至不一定所有的包都得使用相同的构建系统,每个包可以使用不同的构建系统,并可以依赖于其他使用不同构建系统的包。Conan可以工作在:Windows、Linux(Ubuntu、Debian、RedHat、ArchLinux、Raspbian)、OSX、FreeBSD和SunOS,由于它是可移植的,它可以工作在任何可以运行Python的其他平台上。默认定义了当前最流行的有:gcc、cl.exe、clang、apple-clang、intel,同时支持不同的版本配置、运行时、C++标准库等。原创 2022-09-26 11:57:12 · 515 阅读 · 0 评论 -
Optuna: better than grid search
Optuna。原创 2022-09-26 11:55:40 · 389 阅读 · 0 评论 -
Pytest Fixture
【代码】Pytest Fixture。原创 2022-09-26 11:54:56 · 227 阅读 · 0 评论 -
Efficient Numpy: Numba
【代码】Efficient Numpy: Numba。原创 2022-09-26 11:54:19 · 165 阅读 · 0 评论 -
Python DataFlow: Dask & Pyarrow & GreatExpectations
说到这里,大家大概都明白了arrow其实和protobuf很像,只不过protobuf是为了structured data提供内存表示方式和序列化方案。可是两者的使用场景却很不一样。protobuf主要是序列化structured data,有很多的键值对和非常深的nested structure。arrow序列化的对象主要还是表格状数据。arrow主要focus在帮助 data 序列化, 以便在各种system之间transfer.arrorw还解决了类型共享计算格式不统一的问题,是高性能计算的基础.原创 2022-09-26 11:53:36 · 693 阅读 · 0 评论 -
Python: Conda & Mamba
Conda作为使用最为广泛的数据科学环境管理工具,可以协助我们很方便的完成创建管理环境、下载安装第三方库、软件包等操作,但其在下载资源的过程中下载速度时常令人捉急,即使使用连接速度更快的国内镜像,也摆脱不了其单线程挨个下载资源导致的低效问题。原创 2022-09-26 11:52:01 · 883 阅读 · 0 评论 -
Python: tox
【代码】Python: tox。原创 2022-09-26 11:50:36 · 463 阅读 · 0 评论 -
Python versioneer
【代码】Python versioneer。原创 2022-09-26 11:48:38 · 892 阅读 · 0 评论 -
Python Packaging & Distribution
distuils is the standard packaging tool of Python, and setuptools is its improvement.shell commandExample: setuptoolssetup.pysetup.cfgjust copy parameters to cfg fileshell commandPyPI & egg, PIP & easy_installPyPI · The Python Packa原创 2022-09-25 20:47:43 · 238 阅读 · 0 评论 -
Advanced Shell: pushd, popd, dirs
pushd, popd, and dirs are shell builtins which allow you manipulate the directory stack. This can be used to change directories but return to the directory from which you came.原创 2022-09-25 20:44:10 · 90 阅读 · 0 评论 -
Linux Job Control: bg, fg & Ctrl+Z
A job is a process that the shell manages. Each job is assigned a sequential job ID. Because a job is a process, each job has an associated PID. There are three types of job statuses:Job control commands enable you to place jobs in the foreground or backgr原创 2022-09-25 20:43:26 · 230 阅读 · 0 评论 -
Kubernetes: Overview, Kaniko & Helm
对于使用者而言,使用Helm后不用需要了解Kubernetes的Yaml语法并编写应用部署文件,可以通过Helm下载并在kubernetes上安装需要的应用。对于应用发布者而言,可以通过Helm打包应用,管理应用依赖关系,管理应用版本并发布应用到软件仓库。原创 2022-09-25 20:40:59 · 334 阅读 · 0 评论 -
Advanced Git
【代码】Advanced Git。原创 2022-09-25 20:34:52 · 259 阅读 · 0 评论 -
Message Bus & Solace Deeper Dive
Distributed system design is hard. There are many decisions that you need to make in the architecture early that have long reaching impacts. One of these decisions is how systems will communicate.**I think that communication roughly falls into two schools:原创 2022-09-25 20:33:00 · 221 阅读 · 0 评论 -
【C++ 开发】【笔试/面试】常考笔记
文章目录@[toc]C++11 FeatureConstructor InitializerPointersNULL & nullpterPointers to data membersSmart Pointersunique_pointershared_pointerweak_pointershared_pointer implementauto & decltypeRange Based ForRead-only RangeReference RangeRange Modify:Can原创 2022-04-07 13:48:27 · 2266 阅读 · 0 评论 -
docker json log 太大导致的 no space left on device
查看空间占用情况du -h --max-depth=1查看 docker 日志占用情况sudo du -d1 -h /var/lib/docker/containers | sort -h解决方案1:删除 docker json log,重启容器解决方案2:docker 容器启动时设置日志的文件个数和单个文件的大小docker run -it --log-opt max-size=10m --log-opt max-file=3 redis解决方案3:全局配置 docker /.原创 2021-11-20 16:30:37 · 899 阅读 · 0 评论 -
Thrift 介绍
Go ThriftDemo GitHubThrift 软件栈如果实现跨语言通信,传输层和协议必须相同,但是跨语言时会出现对应的传输层或协议未实现的情况Thrift软件栈分层从下向上分别为:传输层(Transport Layer)、协议层(Protocol Layer)、处理层(Processor Layer)和服务层(Server Layer)。传输层(Transport Layer):传输层负责直接从网络中读取和写入数据,它定义了具体的网络传输协议;比如说TCP/IP传输等。协议层(P原创 2021-11-18 18:14:33 · 197 阅读 · 0 评论 -
使用rpc(thrift或protobuf)进行前后端交互的若干种方式
使用http协议进行前后端交互,后端使用http到rpc协议进行转发:https://github.com/lilinxi/pilipili使用thrift或protobuf等序列化协议构造restful-api:https://www.jianshu.com/p/f084ea37e419使用nginx或envoy等代理服务器转发,仅限gRPC直接使用rpc框架生成的js-client,使用node,vue或react...原创 2021-11-18 17:58:25 · 2625 阅读 · 0 评论 -
基于机器学习的广告落地页转换
文章目录@[toc]项目背景实现原理概要设计详细设计成果展示1. 自动——将广告落地页一键转化为AMP页面2. 速度——转化后页面的加载速度更快3. 智能——能自动识别对应信息,并自动生成关键词信息和页面详情内容4. 工程——项目工程化程度高项目背景互联网广告落地页,指点击广告后跳转出来的网页,也就是广告的链接内容。○ 下载页:如苹果应用商店的App下载页面○ 服务展示页: 如淘宝的商品购买页面○ 信息收集页:提供空白框供客户填充信息○ 服务详情页:其他广告落地页加载速度严重影响广告效果,AM原创 2021-09-06 20:40:24 · 281 阅读 · 1 评论 -
进程管理常用 shell 命令
psLinux下显示系统进程的命令ps,最常用的有ps -ef 和ps aux。这两个到底有什么区别呢?两者没太大差别,讨论这个问题,要追溯到Unix系统中的两种风格,System V风格和BSD 风格,ps aux最初用到Unix Style中,而ps -ef被用在System V Style中,两者输出略有不同。现在的大部分Linux系统都是可以同时使用这两种方式的。ps -efps -ef 是用标准的格式显示进程的、其格式如下UID //用户ID、但输出的是用户名PID /原创 2021-08-25 11:10:58 · 240 阅读 · 0 评论 -
protobuf 反射及应用
protobuf 反射构建 MessageMessage* createMessage(const std::string& typeName){ Message* message = NULL; const Descriptor* descriptor = DescriptorPool::generated_pool()->FindMessageTypeByName(typeName); if (descriptor) { const Message* proto原创 2021-07-05 14:45:39 · 568 阅读 · 0 评论 -
Java链接到数据库mysql
链接数据库调用connect方法退出链接调用exit方法使用的数据库是mysqlimport java.sql.*;public class Constants { private static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; private static final String DB...原创 2018-08-08 14:20:33 · 180 阅读 · 0 评论 -
Java链接到数据库sqlite
链接数据库调用connect方法退出链接调用exit方法使用的数据库是sqliteimport java.sql.DriverManager;import java.sql.SQLException;public class ControlConstants { static final String JDBC_DRIVER = "org.sqlite.JDBC";...原创 2018-08-07 10:12:20 · 505 阅读 · 0 评论 -
如何关闭运行在某端口的的进程,例如 :8080端口?
如何关闭运行在某端口的的进程,例如 :8080端口?运行cmd,输入第一行内容;第二行最后的数字为process ID 即PID,为LISTENING之后的数字。输入最后一行关闭。C:\Users\username>netstat -o -n -a | findstr :8080 TCP 0.0.0.0:3000 0.0.0.0:0 ...原创 2018-08-07 15:48:27 · 1110 阅读 · 0 评论