- 博客(22)
- 资源 (35)
- 收藏
- 关注
原创 App系列之Github开源---Jetpack MVVM 最佳实践
简介Jetpack MVVM最佳实践地址https://github.com/KunMinX/Jetpack-MVVM-Best-Practice详情特征整洁的代码风格 和 标准的资源命名规范。 对 视图控制器 知识点的 深入理解 和 正确使用。 AndroidX 和 Material Design 2 的全面使用。 ConstraintLayout 约束布局的最...
2019-12-29 22:30:46 2215
原创 Github开源Go系列---手机电脑文件互传工具百灵
简介基于Go语言的高性能 “手机电脑超大文件传输神器”、”局域网共享文件服务器”。LAN large file transfer tool。地址https://github.com/bitepeng/b0pass特征目前可以支持如下这些场景:手机电脑共享文件:电脑上双击执行 –> 手机扫码 –> 手机上的大文件传到电脑、或者电脑传文件到手机。 电脑之间共享文件...
2019-12-29 22:23:24 2536
原创 Github开源系列---开源集合
简介国内顶尖团队 Github 开源项目地址合集地址https://github.com/niezhiyang/open_source_team详情国内国外
2019-12-29 22:15:43 844
原创 Github开源Go系列---命令行管理文件的工具lf
简介一个直接通过命令形式的目录树可视化文件管理工具。项目地址https://github.com/gokcehan/lf安装命令go get -u github.com/gokcehan/lf特征Cross-platform (Linux, OSX, BSDs, Windows (partial)) Single binary without any runtime...
2019-12-29 22:08:47 675
转载 Segmentation fault到底是何方妖孽
前两天和阿彬扯淡的时候(注意不是扯蛋),他说自己一个礼拜解决了三个Core dump,华丽丽之极,让我对其敬仰、膜拜之情如滔滔之江水,绵绵不绝。今天我也来谈一下Linux环境下开发时经常遇到的“Segmetation fault”的一点点个人看法,也算是抛砖引玉了。 (备注:我的glibc版本是2.12,GCC版本4.4.6,内核版本2.6.32-279) Linux上开发时最恼火的就...
2019-12-24 00:22:45 535
原创 C/C++获取当前系统毫秒时间戳
C/C++获取当前系统毫秒时间由于要实现与JAVA相同的功能,所以先贴上JAVA代码的实现:public static void main(String[] args){ System.out.println("java program :" + System.currentTimeMillis()); }起初准备采用time(NULL)来实现...
2019-12-24 00:15:58 5374
原创 线上内存泄漏排查全纪录之CloseableHttpAsyncClient
目录前言疑点restClient在报出异常时没有正确执行关闭导致内存泄漏关键部分未改动前代码于是果断修改代码如下,并重新上线基于源代码分析分析路线1:经过哪些调用,最终关闭了什么?分析路线2:这种手动调用是否有必要,不会自动执行资源释放吗?最终结论前言线上内存报警,重启之后内存占用降低,但是慢慢升高且几乎没有下降迹象,最终流量高峰时触发内存阈值,导致报警,前...
2019-12-22 16:08:35 2958
原创 全网或许最深刻的ehcache缓存配置分析和避坑讲解
目录Springboot如何使用ehcache配置时必须理解配置也许存在的坑Springboot如何使用ehcache1,引入依赖<dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <versi...
2019-12-21 22:32:00 698
原创 利用Vim优雅操作目录
如果你只是打开一个文件,那么它会带你回到目录浏览。:Rex[plore]:返回到资源管理器vimdoc.sourceforge :Ex:打开资源管理器,但不一定是相同的。见vim.wikia :b#:返回到“先前编辑的缓冲区”。见vim.wikia Ctrl-O:跳回到先前(较旧)的位置,不一定是缓冲区。见vim.wikia...
2019-12-17 22:09:36 648
原创 一款更加高效和小巧的Mysql 客户端工具mycli在CentOS安装和使用
通常思路是,如果需要在客户端安装需要安装mysql,这个一个相对比较重的的功能了,而且安装起来也比较繁杂,下面推荐的mycli更叫轻量和友好第一步:安装python-pipyum install -y python-pip第二步:安装安装myclipip install mycli第三步:开始使用mycli -h127.0.0.1 -uroot -p'654321...
2019-12-17 18:59:32 789
转载 在流量高峰期避免CDN问题的10个方法
在视频流媒体中,因平台火爆而出现问题是件好事。至少,这比根本没有观众要好。也许你正在使用世界级的 CDN,但是,在大型赛事期间,当 CDN 的服务器和对等点流量变得饱和的时候,一些用户还是无法享受到流畅的体验。因为每个 CDN 拥有的容量都是有限的,所以都有其局限性。更糟糕的是,每个 CDN 都是一个黑盒子,在任何特定时候几乎都不能提供可用容量的信息。因此,CDN 在大型赛事中的实际表现情...
2019-12-16 01:05:50 505
原创 Shell数组定义和遍历
数组定义: 1 arr=(1 2 3 4 5) # 注意是用空格分开,不是逗号!! 数组定义法2: 1 2 3 4 array array[0]="a" array[1]="b" array[2...
2019-12-16 01:01:57 880
原创 Mybatis如何返回insert后的主键值
不返回自增主键的方法<insert id="insertFollowInfo" > INSERT INTO follow_info(podcast_id,g_user_id,follow_time,create_time,update_time) VALUES(#{podcastId},#{gUserId},#{followTime},#{createTime},#{u...
2019-12-15 23:11:44 925
转载 Samza---一个开源、分布式的流处理框架
Apache Samza是一个开源、分布式的流处理框架,它使用开源分布式消息处理系统Apache Kafka来实现消息服务,并使用资源管理器Apache Hadoop YARN实现容错处理、处理器隔离、安全性和资源管理。近日,从Apache官方博客中得知,开源的分布式流处理框架Samza历经18个月的孵化期后终于升级成为Apache的顶级项目。Samza由LinkedIn于2013年9月开源并作为...
2019-12-09 01:21:33 1393
转载 Apex---Apache开源流式处理框架
2016年底,facebook 统计报告显示全球已经有33亿人接入互联网,如我们算上通信用户,那么全球有超过三分之二的人已经通过某种方式接入互联网,每一天,人类的活动都将产生海量的数据,并且量级呈指数级上升。正是海量数据的快速生成,对于海量数据的存储和处理的技术也相对应的快速发展,由于大数据领域的快速发展,统计分析已经无法把数据的优势完美发挥,从而促使机器学习的第三次爆发。几乎是每隔几个月,我...
2019-12-09 00:58:43 1512
转载 DistributedLog---Twitter开源的分布式日志系统
Twitter的开源DistributedLog是一款高性能复制日志服务,能提供持久的可复制的强一致性(分布式事务机制),可以作为基础构建设施用于创建可靠的分布式系统,例如可复制的状态机(replicated-state-machine)、一般的pub/sub系统、分布式数据库和分布式队列等。是Kafka的竞争产品。分布式系统一般使用日志来构建可靠的复制性系统有两种范式,如下图://p...
2019-12-09 00:56:20 618
转载 Pravega---Dell Emc开源分布式流存储系统
当前的大数据处理系统无论是何种架构都面临一个共同的问题,即:“计算是原生的流计算,而存储却不是原生的流存储” 。Pravega 团队重新思考了这一基本的数据处理和存储规则,为这一场景重新设计了一种新的存储类型,即原生的流存储,命名为”Pravega”,取梵语中“Good Speed”之意。本文是“分布式流存储 Pravega 系列文章”第二篇,第一篇文章回顾《为什么你需要开源分布式流存储 Prav...
2019-12-09 00:52:53 1993
转载 LogDevice---Facebook开源一种用于日志的分布式数据存储系统
日志是记下有序序列的不可变记录,并将记录可靠存储起来的最简单方法。如果你构建数据密集型分布式服务,很可能在某处需要一两个日志。我们Facebook构建许多庞大的分布式服务来存储和处理数据。想要连接数据处理管道的两个阶段,又不必担心数据流控制或数据丢失?让一个阶段写入日志,另一个阶段从日志读取。在维护大型分布式数据库上的索引?让索引服务读取更新日志,以适当的顺序应用所有更改。有一系列一周后要以特定顺...
2019-12-09 00:49:41 482
转载 MySQL中使用DATE、DATETIME、TIMESTAMP总结
mysql-connector-java的版本和mysql的版本需要配套使用,例如5.6.4之前的版本,就最好不要使用mysql-connector-java的5.1.23之后的版本,否则就可能会遇到我们这次遇到的问题。 MySQL中用来表示时间的字段类型有:DATE、DATETIME、TIMESTAMP,它们之间有相同点,各自也有自己的特性,我总结了一个表格,如下所示: ...
2019-12-08 00:17:59 416
转载 阿里高级技术专家方法论:如何写复杂业务代码?
导读:张建飞是阿里巴巴高级技术专家,一直在致力于应用架构和代码复杂度的治理。最近,他在看零售通商品域的代码。面对零售通如此复杂的业务场景,如何在架构和代码层面进行应对,是一个新课题。结合实际的业务场景,Frank 沉淀了一套“如何写复杂业务代码”的方法论,在此分享给大家,相信同样的方法论可以复制到大部分复杂业务场景。一个复杂业务的处理过程业务背景简单的介绍下业务背景,零...
2019-12-03 23:45:21 361
原创 WebSocket系列9---对WebSocket进行长连接压测和分析方案
压测方案1:开发压测客户端(多线程)语言任选:JavaScript, python, java, go都可以只要支持标准的websocket即可。参考如下:websocket长连接压力测试踩过的坑方案2:Jmeter的websoket插件参考如下:Jmeter对Web Socket进行压力测试 —— 200人直播课实战经验jmeter针对websocket协议的压测...
2019-12-02 15:43:26 1894
原创 直播系统---从直播答题看SEI帧的原理和作用
什么事SEISEI即补充增强信息(Supplemental Enhancement Information),属于码流范畴,它提供了向视频码流中加入额外信息的方法,是H.264/H.265这些视频压缩标准的特性之一。SEI的基本特征如下:1. 并非解码过程的必须选项2. 可能对解码过程(容错、纠错)有帮助3. 集成在视频码流中也就是说,视频编码器在输出视频码流的时候...
2019-12-01 11:22:42 8298
Natural Language Processing with Deep Learning CS224N/Ling284
2024-09-09
RFC9220 - HTTP Datagrams and the Capsule Protocol
2024-08-02
RFC9297 - Bootstrapping WebSockets with HTTP/3
2024-08-02
RFC9114 - HTTP/3
2024-08-02
RFC9000 - QUIC: A UDP-Based Multiplexed and Secure Transport
2024-08-02
RFC8446 -The Transport Layer Security (TLS) Protocol Version 1.3
2024-08-02
Web3+Decentralized+去中心化+存储
2024-04-30
Chainbase+Web3+APi+Data warehouse
2024-04-30
Graph+Web3+检索
2024-04-30
Web3+Nostr+区块链+去中心化+Relay+抗审查
2024-04-30
VISION FOR A HETEROGENEOUS MULTI-CHAIN FRAMEWORK DRAFT
2023-12-24
Security audit report for imtoken wallet
2023-12-24
Decentraland is a blockchain-based virtual world
2023-12-24
力场的定位是一个以公链共建挖矿为核心的社区平台以及UGC平台
2023-12-24
A Novel Metastable Consensus Protocol Family for Cryptocurrencie
2023-12-24
Measuring Ethereum Network Peers
2023-12-24
Firework Games White Paper
2023-12-24
CS251 Final Exam 2021
2023-12-24
Generic Construction of Ring Signatures with Efficient
2023-12-24
The Gridex Protocol
2023-12-24
Efficient Zero-Knowledge Arguments for Arithmetic Circuits
2023-12-24
KishuInu Whitepaper
2023-12-24
On the Instability of Bitcoin Without the Block Reward
2023-12-24
Shorter Proofs for Privacy-Enhanced Distributed Ledger
2023-12-24
Attacking Threshold Wallets
2023-12-23
This paper provides an architectural overview of the Avalanche
2023-12-23
Avalanche Native Token ($AVAX) Dynamics
2023-12-23
ZKSwap是一个基于 ZK-Rollup 的 Layer2 代币Swap协议
2023-12-23
ZEND White Paper
2023-12-23
KZen Curv Security Audit
2023-12-23
为什么虚拟资产值得投资:元宇宙虚拟地产报告
2023-10-27
元宇宙:未来数字绿洲入口已打开
2023-10-27
Code Assessment of Liquidations 2.0 Smart Contracts
2023-10-27
Scalable and Probabilistic Leaderless BFT Consensus through Meta
2023-10-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人