知鸦日报2022-09-30

2022-09-29 16:30:00 ~ 2022-09-30 16:30:00

Технологии

阿里巴巴技术:浅析设计模式2 —— 策略模式

摘要

策略模式的核心思想是对算法进行封装,委派给不同对象来管理。这样,我们就可以定义一系列算法,将每个算法封装到具有公共接口的一系列具体策略类中,从而使它们可以灵活替换,并让算法可以在不影响到客户端的情况下发生变化。同时,策略模式仅仅封装算法(包括添加、删除),但其并不决定在何时使用何种算法,算法的选择由客户端来决定。

登录后可查看文章图片

信也技术:信也双机房流量控制

摘要

本文将分享信也用户流量管理方法,包括通过DNS切换将用户流量按比例接入到优选机房,以及NGINX流量控制实现机房级流量切换功能等。

登录后可查看文章图片

腾讯技术:看完这篇,成为Grafana高手

摘要

QQ直播前端团队的前端监控专项建设中,通过使用Grafana建设了监控数据大盘,本文将介绍Grafana的使用技巧,手把手分阶段超详细教学,助力各位成为Grafana高手!

登录后可查看文章图片

字节跳动技术:火山引擎 RTC 自研音频编码器 NICO 实践之路

摘要

Opus 编码器具有优良的编码质量和一定的抗丢包能力,获得 RTC 领域厂商青睐,但其应对高丢包或突发丢包等复杂场景时效果较差。RTC 自研 NICO 编码器给出更好的解决方案,兼容 Opus 编码器的同时,提供更高的编码质量和抗丢包能力。

登录后可查看文章图片

京东技术:京东到家埋点治理实践

摘要

随着数据的精细化分析,埋点的可用性、准确率是业界一直在攻克的难题。本文主要讲解京东到家在治理埋点数据、提高埋点数据质量工作中的一些实践经验。

登录后可查看文章图片

哔哩哔哩技术:RoaringBitMap在B站大数据中的应用

摘要

在海量数据背景下,需要快速对数据进行评估、计算和中间存储,一系列专门为大数据准备的数据结构应运而生。

登录后可查看文章图片

爱奇艺技术:爱奇艺播放技术——300ms背后的故事

摘要

我们前进的道路并未因此而结束,基于5.0版本,我们会继续创造出更多的惊喜。

Shrink Your TinyGo WebAssembly Modules by 60%

摘要

With WebAssembly, small binary sizes are good. We at Fermyon like the idea of small microservices for the cloud, but even if you are building for the browser, shaving off a few kilobytes of data can speed up your app.

uber技术:Reducing Logging Cost by Two Orders of Magnitude using CLP

摘要

Long, long ago, the amount of data our systems output to logs was small enough that we were able to retain all of the log files. This allowed our engineers to freely analyze the logs, say for troubleshooting our systems or improving applications. But as Uber’s business grew rapidly, the amount of data being logged increased dramatically. And so we were forced to discard log files after just a short period of time, given the prohibitive cost of retaining them–that is, until we integrated CLP into the logging library (Log4j) of our big data platform. In aggregate, CLP achieves a 169x compression ratio on our log data, saving storage, memory, and disk/network bandwidth at every level. As a result, we can now retain all logs at a fraction of the cost, without throwing away any insights, and the compressed logs can be efficiently searched without decompression.

登录后可查看文章图片

阿里巴巴技术:阿里十年总结:超大规模资源和成本管理的前世今生

摘要

本文对个人经历的十年资源和成本管理经历做了总结。

登录后可查看文章图片

figma技术:How Figma put the bounce in spring animations

摘要

The physics behind spring animations.

日志记录的最佳实践

摘要

好的日志不仅可以为程序开发提供便利,为故障排除提供最重要的辅助信息,更可以为业务或基础设施提供优化建议或数据统计。

登录后可查看文章图片

腾讯技术:MySQL performance_schema之内存监控

摘要

无论从使用、研发还是运维的角度,内存监控一直是MySQL的重点之一。完善的内存监控手段有很多作用。

登录后可查看文章图片

字节跳动技术:字节跳动DanceCC工具链系列之Swift调试性能的优化方案

摘要

DanceCC (Dance Compiler Collection) 是字节跳动的终端技术团队(Client Infrastructure) 下的编译工具链品牌,编译工具链团队成员由国内和硅谷两地的编译器专家及构建系统专家组成,提供基于开源的 LLVM/Swift 项目深度定制的clang/swift编译器、链接器、lldb 调试器和语言基础库等工具及优化方案,覆盖构建性能优化及应用性能稳定性优化等场景,本系列将会围绕这些场景中的优化案例,介绍编译工具链技术在字节的优化方案和落地情况。

登录后可查看文章图片

Designing a REST API: Unix time vs ISO-8601

摘要

In what format should a REST API return and accept timestamps? The two most popular ways are Unix time (or a slight variation thereof) or ISO-8601. Both have their strengths and weaknesses and both are equally popular as we shall see. A sample of 20 APIs yielded nearly a 50/50 split. Therefore, no matter if this holds any persuasion or not, one can walk away knowing that their method of choice given Unix time or ISO-8601, is common knowledge and shouldn’t present a steep learning curve to other developers.

京东技术:通天塔页面搭建提效揭秘:设计稿自动生成楼层

摘要

打破固有研发壁垒,提升平台能力,打通设计稿到楼层生产的线上化链路,一键精准还原设计稿,0代码,低门槛,让用户可以成为楼层样式的生产者。

登录后可查看文章图片

阿里巴巴技术:万字详文,剖析企业数字化的降“本”增效

摘要

重新理解企业科技成本,降“本”增效的本质到底是什么?

登录后可查看文章图片

QR codes

摘要

Ever wondered how a QR code works? No, me neither but it's low-key fascinating. (Warning, there is some extremely nerdy shit here.? )

京东技术:5 种瀑布流场景的实现原理解析

摘要

瀑布流,是比较流行的一种网站页面布局,视觉表现为参差不齐的多栏布局,随着页面滚动条向下滚动,这种布局还会不断加载数据块并附加至当前尾部。

有赞技术:Spark App 血缘解析方案

摘要

本文基于开源 spline 方案的调研,对如何丰富 Spark APP 的血缘解析, 提供了方案和深入的原理剖析。

登录后可查看文章图片

58同城技术:“软硬结合”- 转转搜索少无结果模块简介

摘要

搜索场景下,相关性与流量效率都是两大核心目标。转转少无结果与转转主搜就是这样的两个模块,转转少无结果模块是转转主搜模块的兜底,当用户在APP搜索时,主搜商品展示完毕或者主搜商品过少时,会向用户展示“猜你喜欢”商品。即少无结果模块。

登录后可查看文章图片

哈啰技术:基于出行领域全场景的mock提效探索与实践

摘要

本次跟大家分享的是基于出行领域全场景的mock提效探索与实践,包括以下几大部分:哈啰业务数据场景痛点、哈啰HiMock和传统Mock的对比、Mock技术支撑全场景业务域的实践、规划&探讨。

登录后可查看文章图片

figma技术:How Figma’s multiplayer technology works

摘要

A peek into the homegrown solution we built as the first design tool with live collaborative editing.

登录后可查看文章图片

figma技术:Realtime Editing of Ordered Sequences

摘要

One of the problems we had to solve when we added multiplayer editing to Figma was supporting simultaneous editing of ordered sequences of objects.

登录后可查看文章图片

figma技术:Behind the feature: the hidden challenges of autosave

摘要

The technical challenges of updating our autosave system.

figma技术:Inside Figma: a case study on strict null checks

摘要

A look at how we identify and address bugs.

登录后可查看文章图片

figma技术:How Mozilla’s Rust dramatically improved our server-side performance

摘要

How Mozilla’s new language dramatically improved our server-side performance.

登录后可查看文章图片

How to create GIFs with FFmpeg

摘要

I used to create GIFs in Adobe Photoshop. However, long and smooth animations have to be created using workarounds, as Photoshop has a 500 frames limit. It’s time-consuming and Photoshop is not my primary design tool anyway, so I had to look for the other options. Giffox records only selected snippets of the screen but doesn’t allow to upload videos from a local folder. Also, in the free version, it puts watermark and doesn’t make GIFs longer than 10 seconds. Not to mention that it’s available only on Mac while FFmpeg is cross-platform and doesn’t have such limitations. Ezgif has an upload limit of 2000 files and max file size of 6MB each or 100MB in total. Among online converters, it is one of the best, but it limits FPS depending on the video duration. FFmpeg has good performance and can work with large files.

登录后可查看文章图片

High quality GIF with FFmpeg

摘要

About two years ago, I tried to improve the support of the GIF encoding in FFmpeg to make it at least decent. This notably led to the addition of the transparency mechanism in the GIF encoder. While this is not always optimal depending on your source, it is in the most common cases. Still, this was merely an attempt to prevent shaming the encoder too much.

But recently at Stupeflix, we needed a way to generate high quality GIF for the Legend app, so I decided to work on this again.

All the features presented in this blog post are available in FFmpeg 2.6, and will be used in the next version of Legend app (probably around March 26th).

登录后可查看文章图片

Методы

我们能衡量的,只有绩效。我们应该衡量的,也只有绩效

摘要

每一个任用决策其实都是赌博。但是基于人之所长去做决策,至少是在理性地赌博。

登录后可查看文章图片

3D思维:把“不可能”变成“可能”

摘要

解决日常问题相关的 3D 思维可以被认为是一个人从各个方面观察情况的能力。拆解问题,这样你就可以找到核心问题,然后在常规方法之外找到创造性的解决方案。

登录后可查看文章图片

The PARA Method: A Universal System for Organizing Digital Information

摘要

Imagine for a moment the perfect organizational system. One that supported and enhanced the work you do, telling you exactly where to put a piece of information, and exactly where to find it when you needed it.

登录后可查看文章图片

Популяризация

从选购到使用,让 3D 打印机打开新世界的大门

摘要

3D 打印机虽然看上去没什么用,但当你获得了可以加工各种形状零件能力的时候,你的想法可能就不太一样了。

登录后可查看文章图片


‹ 2022-09-29 日报 2022-10-01 日报 ›

qrcode

关注公众号
接收推送