Searching txt.sour.is

Twts matching #reading
Sort by: Newest, Oldest, Most Relevant

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)

⤋ Read More

有关 TiDB 升级的二三事——教你如何快乐升级
数据库升级本身就是存在一定风险的操作,TiDB 如何实现平安、顺利、无感的迁移?本文结合一个使用量过亿的用户 K8s 集群升级的案例,介绍了 TiDB 的升级工具包的使用方法,如何实现从简单的参数比对到全场景的模拟重放,根据实际需求和成本考量自主选择搭配方案。

有了 TiDB 升级工具包, **不必在升级选择面前患得患失,也不用在升级过程当中担 … ⌘ Read more

⤋ Read More

消息最终一致性最易用的新架构

概述

跨服务更新数据是应用开发常见的任务,如果一些关键数据对一致性的要求较高,而业务上也不需要支持回滚的话,那么通常就会采用本地消息表的方式来保证最终一致。许多公司在处理跨服务更新数据一致性问题时,都会先引入本地消息表,后续随着业务场景复杂化,再引入更多的事务模式

本文提出的二阶消息,是一种新模式,新架构,优雅的解决了消息最 … ⌘ 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

⤋ 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

⤋ 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

⤋ 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

⤋ 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

⤋ Read More
In-reply-to » Sorry if anyone saw my last Yarn here... I deleted it, I was wrong. Looks like everything is encrypted attachments phew but my other concerns above still stand.

@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

⤋ Read More

Autocrypt - Wikipedia

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
  • Metadata is a BIG problem with Delta.Chat:
    • The To and From and Date are trackable by your Mail provider (amongst many other headers)

Hmmm 🤔 cc @deebs@twtxt.net

⤋ Read More

Go 中实现用户的每日限额(比如一天只能领三次福利)

如果你写一个 bug 管理系统,用了这个 PeriodLimit 你就可以限制每个测试人员每天只能给你提一个 bug。工作是不是就轻松很多了?:P

如今微服务架构大行其道本质原因是因为要降低系统的整体复杂度,将系统风险均摊到子系统从而最大化保证系统的稳定性,通过领域划分拆成不同的子系统后各个子系统能独立的开发、测试、发布,研发节奏和效率�� … ⌘ Read more

⤋ Read More

评委拍案叫绝、项目惊喜不断,这是一届怎样的 Hackathon ?丨 TiDB Hackathon 2021 回顾
昨日, 主题为「Explore the Sky」的 TiDB Hackathon 2021 完美收官!今年已经是  TiDB Hackathon 第五届赛事,参赛规模创历届之最,共有 279 人 ,64 支队伍参赛,有来自腾讯、华为、网易、美团、字节、京东、滴滴等企业的上班族,也有来自北大、北邮、中科院、上海交大、RMIT 等高校的学生。

在两天一夜的 Hacking Time 中,围绕着内�� … ⌘ Read more

⤋ Read More

Go 模糊测试

从 Go 1.18 版本开始,标准工具集开始支持模糊测试。

概述

模糊测试(Fuzzing)是一种自动化测试方法,通过不断地控制程序输入来发现程序错误�� … ⌘ Read more

⤋ Read More

Go 实战 | 基于有向无环图的并发执行流的实现
大家好,我是「Go 学堂」的渔夫子。今天跟大家聊聊基于有向无环图的工作流的实现。

原文链接: https://mp.weixin.qq.com/s/F5BbHeMP7gBZHjiUL0qeeQ

01 工作流(workflow)概述

工作流,是对工作流程中的工作按一定的规则组织在一起并按其进行执行的一种模型。比如常见的行政系统中的加班申请、请假申请;工作流要解�� … ⌘ Read more

⤋ Read More

hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo)

hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo) 什么是可插拔式程序
  • 一个统计的可插拔内核
  • 各个组件相互独立
可插拔式程序
  1. 在设计一个可插拔式程序时我们应该想到的是怎么把我们的需求给实现了,然后我们再搞一波抽象(统计的可插拔内核

不同的模块只要实现了� … ⌘ Read more

⤋ 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!

Sending a Message

From any SMS-enabled device, add +12266669977, which is the gateway’s phone number.  Send the foll … ⌘ Read more

⤋ Read More

美团李凯揭秘数据库发展三大趋势 | TiDB Hackathon 评委访谈
明天就是 Hackathon 比赛日啦,想必各位参赛选手已经摩拳擦掌,开始准备自己的项目了。

在等待最终比赛日的这段时间,TiDB 社区采访了 Hackathon 特邀评委李凯,目前担任美团基础技术部数据库研发中心负责人,团队主要负责美团数据库运维、平台、中间件和自研分布式数据库内核的工作。

![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/cca57a8126e … ⌘ Read more

⤋ 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

⤋ Read More

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

⤋ 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

⤋ 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

⤋ 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

⤋ 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

⤋ Read More

开源走向世界(上):开源构建全球化的舞台丨 BDTC 2021
2021年12月25日,2021 中国大数据技术大会暨 CCF 大数据与计算智能大赛高峰论坛在中科院计算技术研究所隆重召开。PingCAP 高级副总裁范若晗受邀在主会场进行了以 “开源走向世界” 为主题的演讲,结合 PingCAP 的实践,从协作方式和技术演进两个角度,分享了 “开源” 和 “全球化” 之间相互关联,密不可分的关系。本文内容根据演讲内容整理而成,分 … ⌘ Read more

⤋ 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

⤋ Read More

Dumpling 导出表内并发优化丨 TiDB 工具分享

李淳竹(lichunzhu),TiDB 研发工程师

SIG 组:Migrate SIG Community,主要涵盖 TiDB 数据处理工具,包含 TiDB 数据备份/导入导出,TiDB 数据变更捕获,其他数据库数据迁移至 TiDB 等

前言

Dumpling 是由 Go 语言编写的用于对数据库进行数据导出的工具。目前支持 MySQL 协议的数据库,并且针对 TiDB 的特性进行了优化。 [Go Dumpling! 让�� … ⌘ Read more

⤋ 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

⤋ Read More

GoCN 每日新闻(2022-01-04)

GoCN 每日新闻(2022-01-04)
  1. 「GoCN 酷 Go 推荐」go 语言位操作库 — bitsethttps://mp.weixin.qq.com/s/UcuKgKnt4fwrg3c-UHc3sw
  2. Go 通过 Map/Filter/ForEach 等流式 API 高效处理数据https://mp.weixin.qq.com/s/7ATm_Zu7ib9MXf8ugy3RcA
  3. 优化 Go 二进制文件的大小[https://prog.world/optimizing-the-size-of-the-go-binary](https://prog.world/optimizing-the-si … ⌘ Read more

⤋ 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

⤋ Read More

滴滴夜莺监控发布 v5 正式版,定位 Prometheus 企业版
大家好,经过几个月的研发,夜莺 v5 正式版跟大家见面了,这个版本做了巨大的产品定位调整,不再是一个运维平台,而是专注监控告警这个细分领域,拥抱 Prometheus 生态,争取把监控这个事情,做到极致!这是新版的截图,给大家一个直观的认识先。

![](https://gocn.oss-cn-shanghai.aliyuncs.com/photo/UlricQin/4ce62001-bbf5-4fa0-ad65-6cc8c93da13b.png?x-oss-process=image%2Fresize%2C … ⌘ Read more

⤋ Read More

潘娟:Keep open,Stay tuned 开源为我打开的全新世界 | TiDB Hackathon 2021 评委访谈
距离 2022.1.8-9 比赛日,已不到两周时间,想必各位参赛选手已经摩拳擦掌,开始准备自己的项目了。\
在等待最终比赛日的这段时间,TiDB 社区采访了本届 Hackathon 中的一位女性评委,她在数据库领域中耕耘多年,从 DBA 到创业者,具有着传奇色彩的人生经历。\
我们通过访谈记录了她对开源的理解与感悟,同时探讨 Hackathon 活动的� … ⌘ Read more

⤋ Read More

Goland 使用教程 01:高效的处理 json 文本
大家好,我是渔夫子。

工欲善其事,必先利其器。今天我们讲解 Goland 是如何高效的处理 json 的。

01 将 json 直接转换成结构体

首先我们有一个段 json 格式的数据如下,看下 Goland 是如何快捷的转换成结构体的。

”`
{

</span><span class="nl">"email"</span><span class="p">:</span><span class="w"> </span><span class="s2">"noah.poulsen@example.com"</sp ... ⌘ [Read more](https://gocn.vip/topics/20923)```

⤋ Read More

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)```

⤋ Read More

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

⤋ Read More

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

⤋ Read More

GinAdmin 后台管理模板

GinAdmin

这个项目是以 Gin 框架为基础搭建的后台管理平台,虽然很多人都认为 go 是用来开发高性能服务端项目的,但是也难免有要做 web 管理端的需求,总不能再使用别的语言来开发吧。所以整合出了 GinAdmin 项目,请大家多提意见指正!欢迎 star ⭐⭐

Image

Image

依赖
  • golang > 1.8
  • Gin
  • BootStrap
  • LayUi
  • WebUpload
  • [Light Year Admin Using Ifra … ⌘ Read more

⤋ Read More

Excelize 发布 2.5.0 版本,Go 语言 Excel 文档基础库

Image

Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,基于 ECMA-376,ISO/IEC 29500 国际标准。可以使用它来读取、写入由 Microsoft Excel™ 2007 及以上版本创建的电子表格文档。支持 XLSX / XLSM / XLTM 等多种文档格式,高度兼容带有样式、图片 … ⌘ Read more

⤋ Read More

go 语言位操作库 bitset
bitset库 实现了 bitsets 数据结构,这是一种正整数和布尔值映射关系的结构,它比 map[uint]bool 更高效

什么是 bitsets

bitsets 基本思想是用一个 bit 位来标记某个元素对应的 Value,每一位表示一个数,1 表示存在,0 表示不存在
比如我要表示 1, 3, 7 这 3 个数

  1. 构造一个空白 bitsets:00000000
  2. 每位代表的值如下:76543210
  3. 想要表示的值标记 1:10001010
有什么好处?

�� … ⌘ Read more

⤋ Read More

My 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

⤋ Read More