How we ship GitHub Mobile every week
Learn how the GitHub Mobile Team automates their release process with GitHub Actions. ⌘ Read more
Golang《基于 MIME 协议的邮件信息解析》部分实现
Golang 邮件 golang 中邮件相关的包net/mail
net/smtp
net/textproto
mime
mime/multipart
mime/quotedprintable
基于 smtp 包的邮件发送示例,基于官方文档:
<span class="c">// Set up authentication information.</span>
<span class="n">auth</span> <span class="o">:=</span> <span class="n">smtp</span><span class="o">.</span><span class="n">PlainAuth</span><span class="p">(</span><span class="s">""</span><span class="p">,</span> <span class="s">"xxxx@qq.com"</span><span class="p">,</span> <span class="s">"xxxxx"</span><s ... ⌘ [Read more](https://gocn.vip/topics/20948)
有关 TiDB 升级的二三事——教你如何快乐升级
数据库升级本身就是存在一定风险的操作,TiDB 如何实现平安、顺利、无感的迁移?本文结合一个使用量过亿的用户 K8s 集群升级的案例,介绍了 TiDB 的升级工具包的使用方法,如何实现从简单的参数比对到全场景的模拟重放,根据实际需求和成本考量自主选择搭配方案。
有了 TiDB 升级工具包, 你 **不必在升级选择面前患得患失,也不用在升级过程当中担 … ⌘ Read more
GoCN 每日新闻(2022-01-12)
GoCN 每日新闻(2022-01-12)
- Go 实现的自动保存 Git 项目中未提交代码https://github.com/nikochiko/autosaved
- Go 中快速、简单的全栈 Web 开发入门工具包https://github.com/mikestefanello/pagoda
- Golang Redis RESP3 客户端,自动流水线并支持客户端缓存https://github.com/rueian/rueidis
- Runtime 不变性检查库[https:/ … ⌘ Read more
消息最终一致性最易用的新架构
概述跨服务更新数据是应用开发常见的任务,如果一些关键数据对一致性的要求较高,而业务上也不需要支持回滚的话,那么通常就会采用本地消息表的方式来保证最终一致。许多公司在处理跨服务更新数据一致性问题时,都会先引入本地消息表,后续随着业务场景复杂化,再引入更多的事务模式
本文提出的二阶消息,是一种新模式,新架构,优雅的解决了消息最 … ⌘ Read more
Eagle-eyed folks may have noticed that I made a few wee changes to this website.
The biggest, and most noticeable one is that I’ve filtered out all of the like type posts from appearing on the main feed, from rss, and in the archives. There were waaaaay to many, so filtering them out makes the entire website a lot more navigable. They are not gone, though, and I’ll probably keep sharing like type posts, but now they ar … ⌘ Read more
Language Development
⌘ Read more
Neil deGrasse Tyson Explains LED Lights ⌘ Read more
Jerome Powell Says the Fed is Prepared To Raise Rates To Tame Inflation
Jerome H. Powell, the Federal Reserve chair, told lawmakers on Tuesday that a rapidly healing economy no longer needed as much help from the central bank and that keeping inflation in check – including by raising interest rates – would be critical for enabling a stable expansion that benefits workers. From a report: Mr. Powell, … ⌘ Read more
How to convert USB webcams to HDMI
There are a handful of interesting USB webcams out there, which naturally work great with a computer. But what if you want to combine video from a USB webcam with your HDMI cameras in a video switcher like the ATEM Mini? ⌘ Read more
A few email thoughts…
I recently switched to Purelymail, after mentioning a long time ago that I keep an eye on the service every now and then. ⌘ Read more
Securing the Software Supply Chain with Docker Business
Organizations are increasingly facing new challenges in trying to protect their software supply chain. This has become especially difficult as the workforce has transitioned to a more distributed model with organizations scaling and onboarding more developers on distributed teams. With the number of software supply-chain attacks increasing by 650% in 2021, coordinating all of these […]
The post [Securing the Software Su … ⌘ Read more
I feel like it took me a bit longer to fully understand how to work in Smalltalk than it did most languages. The IDE is different than anything I’ve used before, and probably anything you’ve seen as well. You’re not going to be opening myscript.st in your favorite text editor, and then run it from the command line as you would a Python program. It takes a little mental adjustment to start with.
That’s not the warning, howe … ⌘ Read more
@tamer@twtxt.net We’re not trying to compete with anything… If you’ve read About Yarn.social – In a nutshell I want to create an open, transparent social platform that respect’s folks privacy and freedoms. It must also be easy to use and down-to-earth where human interactions actually matter. None of this rubbish of manipulating what you see, driving up engagement numbers to serve your advertisers and all that garbage
Just reading in-depth and trying to understand the security model of Delta.Chat a bit more… There’s a few things that really concern me about how Delta.Chat which relies on Autocrypt work:
- There is no Perfect Forward Secrecy
- No verification of keys
- Is therefore susceptible to Man-in-the-Middle attacks
- Is therefore susceptible to Man-in-the-Middle attacks
- Metadata is a BIG problem with Delta.Chat:
- The
ToandFromandDateare trackable by your Mail provider (amongst many other headers)
- The
Hmmm 🤔 cc @deebs@twtxt.net
GoCN 每日新闻 (2022-01-11)
GoCN 每日新闻 (2022-01-11)
- 解读 Go 语言的 2021:稳定为王https://mp.weixin.qq.com/s/9LKyPfhwldgZY7H4iS7sjg
- Go 泛型的 3 个核心设计https://mp.weixin.qq.com/s/I7qysvddG4NDgtYIMMAE3g
- Golang 的 Ealstic 链接库https://mp.weixin.qq.com/s/iHIxsEZf3w06GbO2sHSuRA
- 动态调整 GOGC 优化 Go 的 GC 标记 CPU 占� … ⌘ Read more
Go 中实现用户的每日限额(比如一天只能领三次福利)
如果你写一个 bug 管理系统,用了这个
PeriodLimit你就可以限制每个测试人员每天只能给你提一个 bug。工作是不是就轻松很多了?:P
如今微服务架构大行其道本质原因是因为要降低系统的整体复杂度,将系统风险均摊到子系统从而最大化保证系统的稳定性,通过领域划分拆成不同的子系统后各个子系统能独立的开发、测试、发布,研发节奏和效率�� … ⌘ Read more
评委拍案叫绝、项目惊喜不断,这是一届怎样的 Hackathon ?丨 TiDB Hackathon 2021 回顾
昨日, 主题为「Explore the Sky」的 TiDB Hackathon 2021 完美收官!今年已经是 TiDB Hackathon 第五届赛事,参赛规模创历届之最,共有 279 人 ,64 支队伍参赛,有来自腾讯、华为、网易、美团、字节、京东、滴滴等企业的上班族,也有来自北大、北邮、中科院、上海交大、RMIT 等高校的学生。
在两天一夜的 Hacking Time 中,围绕着内�� … ⌘ Read more
Go 模糊测试
- 原文地址: https://tip.golang.org/doc/fuzz/
- 原文作者:Go Team
- 本文永久链接:https:/github.com/gocn/translator/blob/master/2022/w01_Go_Fuzzing.md
- 译者: fivezh
- 校对: zxmfke
从 Go 1.18 版本开始,标准工具集开始支持模糊测试。
概述模糊测试(Fuzzing)是一种自动化测试方法,通过不断地控制程序输入来发现程序错误�� … ⌘ Read more
Go 实战 | 基于有向无环图的并发执行流的实现
大家好,我是「Go 学堂」的渔夫子。今天跟大家聊聊基于有向无环图的工作流的实现。
原文链接: https://mp.weixin.qq.com/s/F5BbHeMP7gBZHjiUL0qeeQ
01 工作流(workflow)概述工作流,是对工作流程中的工作按一定的规则组织在一起并按其进行执行的一种模型。比如常见的行政系统中的加班申请、请假申请;工作流要解�� … ⌘ Read more
Now consumer “security” software is mining cryptocurrency! ⌘ Read more
GoCN 每日新闻 (2022-01-10)
GoCN 每日新闻 (2022-01-10)- Minecraft 管理 K8S 集群https://eric-jadi.medium.com/minecraft-as-a-k8s-admin-tool-cf16f890de42
- go ebpf 管理包https://github.com/ehids/ebpfmanager
- Go 错误处理https://earthly.dev/blog/golang-errors/
- Go 中实现用户的每日限额(比如一天只能领三次福利) [https://jueji … ⌘ Read more
hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo)
hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo) 什么是可插拔式程序- 一个统计的可插拔内核
- 各个组件相互独立
- 在设计一个可插拔式程序时我们应该想到的是怎么把我们的需求给实现了,然后我们再搞一波抽象(统计的可插拔内核
不同的模块只要实现了� … ⌘ Read more
JMP: How to use Jabber from SMS
The Soprani.ca project, and Cheogram in particular, is pretty big on bidirectional gateways. The most popular Cheogram-hosted instance, so popular that it gets to own Jabber IDs on cheogram.com, is a bidirectional gateway to the telephone network. How is it bidirectional? Don’t you need a Jabber ID to use it? Of course not!
From any SMS-enabled device, add +12266669977, which is the gateway’s phone number. Send the foll … ⌘ Read more
美团李凯揭秘数据库发展三大趋势 | TiDB Hackathon 评委访谈
明天就是 Hackathon 比赛日啦,想必各位参赛选手已经摩拳擦掌,开始准备自己的项目了。
在等待最终比赛日的这段时间,TiDB 社区采访了 Hackathon 特邀评委李凯,目前担任美团基础技术部数据库研发中心负责人,团队主要负责美团数据库运维、平台、中间件和自研分布式数据库内核的工作。

- 带你探究 Go 语言的 iotahttps://mp.weixin.qq.com/s/V5iJgcLhCYMZd5l8akfbVQ
- 项目实战:使用 Fiber + Gorm 构建 REST APIhttps://mp.weixin.qq.com/s/RqUOLP-OG_wOpCzxVTAl6w
- Effective Error Handling in Golanghttps://earthly.dev/blog/golang-errors/
- 为什么不在 golang 中构建一个 redis 客户端[https://mauricio.github.io/2022/0 … ⌘ Read more
Bookmarked : Cwtch - Decentralized, Surveillance Resistant Infrastructure ⌘ Read more
GoCN 每日新闻 (2022-01-08)
- Go 1.17.6/1.16.13 版本发布https://groups.google.com/g/golang-announce/c/95ZD3rKn4DI/m/93cyN8F1BAAJ
- 高效的 Go 错误处理https://earthly.dev/blog/golang-errors/
- 从零实现一个 RedisClient 了解 Redis 协议https://mauricio.github.io/2022/01/07/redis-protocol.html
- Golang 简洁架构实战[https://zh … ⌘ Read more
Video: C Programming on System 6 - A New On-Disk Database Format
It’s a new year and my computer is still old. ⌘ Read more
🙌 Liked: Virtual Pet Jam - itch.io ⌘ Read more
Peter Saint-Andre: Cultivating Curiosity
In my drive to hold fewer opinions (or at least hold them less strongly), for a while I tried to cultivate a healthy skepticism about things I believe - for instance, by attempting to question one opinion every week. This didn’t work, at least for me, because it felt too negative. Instead, now I’m working to cultivate curiosity. Here are a few thoughts on the process…. ⌘ Read more
Turning Back Time with Neil deGrasse Tyson and Kevin Stone ⌘ Read more
[47°09′02″S, 126°43′42″W] Reading: 0.60000 PPM
Guest Blog: Deciding Between Docker Desktop and a DIY Solution
Guest author Ben Hall is the lead technical developer for C# .NET at gov.uk (a United Kingdom public sector information website) and a .NET Foundation foundation member. He worked for nine years as a school teacher, covering programming and computer science. Ben enjoys making complex topics accessible and practical for busy developers. Deciding Between Docker […]
The post [Guest Blog: Deciding Between Docke … ⌘ Read more
Man in the Middle & Needham–Schroeder Protocol - Computerphile ⌘ Read more
As I read “No Social Media Club”, I wonder what it would be like if I don’t share so much on my blog, what it would be like if I had never started sharing anything on the internet in the first place? 🤔 I somehow don’t have an answer to this… ⌘ Read more
GoCN 每日新闻 (2022-01-07)
GoCN 每日新闻 (2022-01-07)
- 用 golang 在 tor 网络上安全的私有部署共享文件服务https://github.com/R4yGM/garlicshare
- 一个极速的 golang 全栈 web 开发包https://github.com/mikestefanello/pagoda
- ch 一个 clickhouse 客户端,比 rust 和 c++ 的都快https://github.com/go-faster/ch
- 用 gosec 扫描 go 源码的漏洞[https://jcdan3.medium. … ⌘ Read more
Latency
⌘ Read more
Cosmic Queries – A Stellar New Year with Neil deGrasse Tyson ⌘ Read more
Switching to Purelymail
After long consideration, I have now moved email for all but my main domain (but that’s coming too) to Purelymail. Email without bullshit. And with the “Advanced billing mode” they really only charge by usage or $10 per year with the “Simple billing”, but even with Advanced that shouldn’t be much more than $1 per month for me. ⌘ Read more
Switching to Purelymail
After long consideration, I have now moved email for all but my main domain (but that’s coming too) to Purelymail. Email without bullshit. And with the “Advanced billing mode” they really only charge by usage or $10 with the “Simple billing”, but that shouldn’t be much more than $1 per month for me. What I like most is that there is no unnecessary limit on the number of users, aliases or custom domains. 👍 ⌘ Read more
GoCN 每日新闻 (2022-01-06)
- Golang profiler 笔记https://github.com/DataDog/go-profiler-notes/blob/main/README.md
- Bundling templates with embedhttps://osinet.fr/go/en/articles/bundling-templates-with-embed/
- Go 通过 Map/Filter/ForEach 等流式 API 高效处理数据https://gocn.vip/topics/20922
- 滴滴夜莺监控发布 v5 正式版,定位 Promet … ⌘ Read more
** Forth, a tool for cultivating community **
I watch most of the recordings of the Forth2020’s Zoom chats. A topic that comes up from time to time is how to get more folks interested in Forth — especially younger folks. In my weird little corner of the internet I can say that there are certainly young folks interested in Forth!
I wonder if the issue at play is less one of interest, and more one of cross c … ⌘ Read more
开源走向世界(上):开源构建全球化的舞台丨 BDTC 2021
2021年12月25日,2021 中国大数据技术大会暨 CCF 大数据与计算智能大赛高峰论坛在中科院计算技术研究所隆重召开。PingCAP 高级副总裁范若晗受邀在主会场进行了以 “开源走向世界” 为主题的演讲,结合 PingCAP 的实践,从协作方式和技术演进两个角度,分享了 “开源” 和 “全球化” 之间相互关联,密不可分的关系。本文内容根据演讲内容整理而成,分 … ⌘ Read more
🙌 Liked: Mimic — Buried Treasure ⌘ Read more
GitHub Availability Report: December 2021
In December, we experienced no incidents resulting in service downtime to our core services. ⌘ Read more
How the community powers GitHub Advanced Security with CodeQL queries
The GitHub Security Lab’s CodeQL bounty program fuels GitHub Advanced Security with queries written by the open source community. ⌘ Read more
Ignite Realtime Blog: Openfire 4.5.6 is released
Openfire 4.5.6 has been released, that addresses an annoying issue that was affecting the earlier 4.5.5 release. We’ve updated the bundled log4j library to version 2.17.1 for good measure.
The changelog denotes the two Jira issues closed by this release. You can find Openfire build artifacts available for download [here](https://github.com/igniterealtime/Openfire/rel … ⌘ Read more
In reply to: The Whippet 137: Please don’t make me fight a fire ant
It’s named after Texan exterminator Tom Rasberry, but you can call it a Raspberry Crazy Ant if you want and no one will notice I bet.
The Raspberry Crazy Ant, for some reason, loves electronics, so it will come and chew through wires and get electrocuted. When an ant dies, it releases an … ⌘ Read more
GoCN 每日新闻 (2022-01-05)
GoCN 每日新闻 (2022-01-05)- Rust 与 Go: 为何相得益彰https://gocn.vip/topics/20929
- 聊聊 GOLANG 中形形色色的同步原语http://vearne.cc/archives/39631
- Go 泛型的这 3 个核心设计,你都知道吗?https://segmentfault.com/a/1190000041227815
- Go 语言高效率 Web 开发四:分层领域模型和项目结构分层[https://juejin.cn/post/70492 … ⌘ Read more
Rust 与 Go: 为何相得益彰
Rust 与 Go: 为何相得益彰- 原文地址: https://thenewstack.io/rust-vs-go-why-theyre-better-together/
- 原文作者: Jonathan Turner and Steve Francia
- 本文永久链接:https:/github.com/gocn/translator/blob/master/2021/w52_rust_vs_go_why_there_are_better_together.md.md
- 译者: [xkkhy](https:/gith … ⌘ Read more
Dumpling 导出表内并发优化丨 TiDB 工具分享
前言李淳竹(lichunzhu),TiDB 研发工程师
SIG 组:Migrate SIG Community,主要涵盖 TiDB 数据处理工具,包含 TiDB 数据备份/导入导出,TiDB 数据变更捕获,其他数据库数据迁移至 TiDB 等
Dumpling 是由 Go 语言编写的用于对数据库进行数据导出的工具。目前支持 MySQL 协议的数据库,并且针对 TiDB 的特性进行了优化。 [Go Dumpling! 让�� … ⌘ Read more
Sunshield
⌘ Read more
Neil deGrasse Tyson Explains the Edge of the Earth ⌘ Read more
Docker is Hiring!
Welcome to 2022! Even in normal times, the New Year is a time for looking back and looking forward. And even more after the last couple of years, we know that a lot of people are reassessing their lives and their priorities, and considering moving jobs. If that’s you, we wanted to let you know […]
The post Docker is Hiring! appeared first on Docker Blog. ⌘ Read more
Erlang Solutions: FinTech Matters newsletter | January 2022
Subscribe to receive FinTech Matters and other great content, notifications of events and more to your inbox, we will only send you relevant, high-quality content and you can unsubscribe at any time.
Read on to discover what really matters fo … ⌘ Read more
New year, new habits?!
Colin’s post yesterday inspired me to install the Loop Habit Tracker app. How did I not know about this app yet? Free, no ads, and even open source! ⌘ Read more
GoCN 每日新闻(2022-01-04)
GoCN 每日新闻(2022-01-04)- 「GoCN 酷 Go 推荐」go 语言位操作库 — bitsethttps://mp.weixin.qq.com/s/UcuKgKnt4fwrg3c-UHc3sw
- Go 通过 Map/Filter/ForEach 等流式 API 高效处理数据https://mp.weixin.qq.com/s/7ATm_Zu7ib9MXf8ugy3RcA
- 优化 Go 二进制文件的大小[https://prog.world/optimizing-the-size-of-the-go-binary](https://prog.world/optimizing-the-si … ⌘ Read more
What’s new in dubbo-go-pixiu 0.4.0
Dubbo-go-pixiu 是一款高性能 API 网关,支持 Dubbo 和 Http 等多种协议。具体介绍文章可以参考 《Dubbo 跨语言调用神兽:dubbo-go-pixiu》。
近期社区发布了 0.4.0 版本,具体请查看 v0.4.0。相关改进实在太多,本文只列出相关重大 feature、bugfix 、 性能提升项。
1 动态从 Spring Cloud 和 Dubbo 注册中心拉取路由和集群配置数据Pixiu 原本依赖本� … ⌘ Read more
滴滴夜莺监控发布 v5 正式版,定位 Prometheus 企业版
大家好,经过几个月的研发,夜莺 v5 正式版跟大家见面了,这个版本做了巨大的产品定位调整,不再是一个运维平台,而是专注监控告警这个细分领域,拥抱 Prometheus 生态,争取把监控这个事情,做到极致!这是新版的截图,给大家一个直观的认识先。
```
Go 通过 Map/Filter/ForEach 等流式 API 高效处理数据
什么是流处理如果有 java 使用经验的同学一定会对 java8 的 Stream 赞不绝口,极大的提高了们对于集合类型数据的处理能力。
”`
int sum = widgets.stream()
<span class="o">.</span><span class="na">filter</span><span class="o">(</span><span class= ... ⌘ [Read more](https://gocn.vip/topics/20922)```
Ignite Realtime Blog: Openfire 4.6.7 released (Log4j 2.17.1 only change)
Openfire 4.6.7 has been released with only a single change to bump the bundled log4j library to version 2.17.1. Whilst we do not believe Openfire to be vulnerable to the CVEs associated with the log4j 2.17.0 and 2.17.1 releases, we realize that many folks are running naive security scanners that are simply checking for bundled jar versions.
The [changelog](https://download.igniterealtime.org/open … ⌘ Read more
[47°09′56″S, 126°43′01″W] Raw reading: 0x61D355C1, offset +/-2
[47°09′46″S, 126°43′52″W] Reading: 0.39 Sv
Finally I have implemented a kind of trash in GoBlog. When I delete a post, it is first marked as deleted and can be restored within 7 days. Unfortunately the integration with ActivityPub is not that easy. ActivityPub allows to Undo a Delete activity, but Mastodon doesn’t support that, just like Mastodon doesn’t support Updates. 🙄 ⌘ Read more
GinAdmin 后台管理模板
GinAdmin这个项目是以 Gin 框架为基础搭建的后台管理平台,虽然很多人都认为 go 是用来开发高性能服务端项目的,但是也难免有要做 web 管理端的需求,总不能再使用别的语言来开发吧。所以整合出了 GinAdmin 项目,请大家多提意见指正!欢迎 star ⭐⭐
依赖- golang > 1.8
- Gin
- BootStrap
- LayUi
- WebUpload
- [Light Year Admin Using Ifra … ⌘ Read more
Throat and Nasal Passages
⌘ Read more
Excelize 发布 2.5.0 版本,Go 语言 Excel 文档基础库
Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,基于 ECMA-376,ISO/IEC 29500 国际标准。可以使用它来读取、写入由 Microsoft Excel™ 2007 及以上版本创建的电子表格文档。支持 XLSX / XLSM / XLTM 等多种文档格式,高度兼容带有样式、图片 … ⌘ Read more
[47°09′01″S, 126°43′07″W] Reading: 1.10 Sv
Nominally, my seen/read list for 2021, but I missed a lot of short readings. I may try to write more about these things this year. http://a.9srv.net/media/2021
go 语言位操作库 bitset
bitset库 实现了 bitsets 数据结构,这是一种正整数和布尔值映射关系的结构,它比 map[uint]bool 更高效
bitsets 基本思想是用一个 bit 位来标记某个元素对应的 Value,每一位表示一个数,1 表示存在,0 表示不存在
比如我要表示 1, 3, 7 这 3 个数
- 构造一个空白 bitsets:00000000
- 每位代表的值如下:76543210
- 想要表示的值标记 1:10001010
�� … ⌘ Read more
GoCN 每日新闻 (2022-1-1)
- https://eli.thegreenplace.net/2021/go-https-servers-with-tls/ Go HTTPS servers with TLS
- https://eli.thegreenplace.net/2020/embedding-in-go-part-3-interfaces-in-structs/ interfaces in structs
- https://mp.weixin.qq.com/s/Ec1nuR5Q_QgaC3FqeX1gLg 最简单的服务响应时长优化方法
- [https: … ⌘ Read more
[47°09′34″S, 126°43′25″W] Reading: 1.51000 PPM
Peter Saint-Andre: Monadnock Valley Press Annual Report 2021
Happy Public Domain Day!… ⌘ Read more
Neil deGrasse Tyson’s Top 10 StarTalk Explainers of 2021 ⌘ Read more
More than 8 hours until midnight and some people are already lighting firecrackers. And this although there is an extra ban on the sale of firecrackers and fireworks because of Corona. 🤦♂️ ⌘ Read more
喜报!GoFrame 开源项目获得,2021 年度开源中国最受欢迎开源项目奖!
喜报!GoFrame 开源项目获得,2021 年度开源中国最受欢迎开源项目奖!
感谢感谢所有社区团队小伙伴的辛勤付出!
… ⌘ Read moreMy 2021 in Review
The year has almost reached its 100% progress, so it’s time again to take a look back and see what happened especially for me personally so 2021. I have written a monthly review every month (already the second year in a row), so here are the highlights of the past 12 months: ⌘ Read more