|
I wanted to take a moment to lay out a journey I didn’t really realize I was on until this morning. Like many big problems it all came out when dealing with a simple little GitHub issue that was raised on a repo I published about 3 years ago. It turns out that some of the stuff in this repo was out of date, and the repo wasn’t useful anymore. Someone nicely pointed this out to be in an issue, and suggested updating the README to warn othe..
|
|
1850 words, 7 minutes. …or, how the cave fish lost his eyes. Iranocypris typhlops - 1944, By B.Coad for Bruun & Kaiser. This post follows directly from the last. In that post, we learned that everyone could do something to reduce their attack surface and decrease the likelihood of a breach. I’m going to show you what that winning system looks like when taken to its ultimate logical conclusion. The logic goes something like this:
|
|
How to Reindex One Billion Documents in One Hour at SoundCloud
-
developers.soundcloud.com
-
7 years ago
-
eng
In the past, the Search Team at SoundCloud had high lead times for making updates to Elasticsearch clusters, either during the implementation of a new feature or simply while fixing a bug. This was because both tasks require us to reindex our catalog from scratch, which means reindexing more than 720 million users, tracks, playlists, and albums. Altogether, this process took up to one week, though there was even one scenario where it almost..
|
|
How to Reindex One Billion Documents in One Hour at SoundCloud
-
developers.soundcloud.com
-
7 years ago
-
eng
In the past, the Search Team at SoundCloud had high lead times for making updates to Elasticsearch clusters, either during the implementation of a new feature or simply while fixing a bug. This was because both tasks require us to reindex our catalog from scratch, which means reindexing more than 720 million users, tracks, playlists, and albums. Altogether, this process took up to one week, though there was even one scenario where it almost..
|
|
With our integrations and plugins for leading CI/CD platforms, Snyk enables a further, more DevOps-focused security gate through the pipeline.
|
|
缓存模块 我在分析 Glide 源码前将 Glide 的项目 clone 到了本地,阅读时添加了很多注释以及自己的理解等等,现在已经推到了 Github 上,有兴趣的同学可以看看: https://github.com/0xZhangKe/Glide-note 缓存模块涉及到的东西比较多,比较重要,所以需要单独用一章节来讲。 关于缓存的获取、数据加载相关的逻辑在 Engine#load 方法中。 先来看看缓存流程,流程如下图: 全部的缓存流程大致如上图所示。 Glide 实例化时会实例化三个缓存相关的类以及一个计算缓存大小的类: //根据当前机器参数计算需要设置的缓存大小 MemorySizeCalculator calculator = new MemorySizeCalculator ( context ); //创建 Bitmap 池 if ( bitmapPool == null....
|
|
项目编译 项目基于最新版 Glide 4.9.0 源码 分析,通过如下方式获取并编译代码: git clone https://github.com/bumptech/glide.git cd glide ./gradlew jar 我在分析 Glide 源码前将 Glide 的项目 clone 到了本地,阅读时添加了很多注释以及自己的理解等等,现在已经推到了 Github 上,有兴趣的同学可以看看: https://github.com/0xZhangKe/Glide-note 总览 有一点需要说明的是,Glide 源码很复杂, 涉及到的东西也很多,这里不能面面俱到,只是把我认为重要的东西介绍了一下,可能还有一些疏漏。 首先我将 Glide 分成了几个模块,让大家有个整体的印象,自顶向下的分析源码,从而实现降维打击。 按照逻辑功能划分,可以把 Glide 框架大概的分成如下几个部分: Glide 大体上可以分为如上几个模块。 下面通过....
|
|
Happy Spring Equinox everyone! It’s the twentieth, which means it’s time for another blog stats report.
|
|
I care quite a bit about self-optimization and longevity and this enthusiasm has developed more and more over the years (although I’m very much an interested amateur here, not an expert by any definition of the word). Over the years I’ve picked up some new habits, supplements, practices, ideas, etc related to this and now I sit here and realize that it’s quite a lot of stuff. I think I might try to capture the ‘state’ of what I’m doing in t..
|
Highlights from BSides Canberra 2019 including talks on JavaScript malware deobfuscation, Linux toolkits and ransomware on a coffee machine
|
Highlights from BSides Canberra 2019 including talks on JavaScript malware deobfuscation, Linux toolkits and ransomware on a coffee machine
|
Highlights from BSides Canberra 2019 including talks on JavaScript malware deobfuscation, Linux toolkits and ransomware on a coffee machine
|
Proper state handling in React will make your components simple and maintainable. Poor choices will give you lots of headaches in the long-term. There are plenty of options for managing state in a React app. But there’s very little guidance about which one you should use in any situation. Let’s fix that. The solution you pick to manage state should fit they way you want to use the items you hold in state. Your choice should also make....
|
|
It's surprising that the idea of an emergency service is even viable, considering how many people are doing things at any given time
|
|
It's surprising that the idea of an emergency service is even viable, considering how many people are doing things at any given time
|
|
It's surprising that the idea of an emergency service is even viable, considering how many people are doing things at any given time
|
|
How to set username and password when consuming a SOAP service with Spring
-
www.databasesandlife.com
-
7 years ago
-
eng
Spring’s Consuming web service guide is great at describing how to go about being a client of a SOAP service, but it doesn’t mention how to consume web services which are protected by any sort of security.
|
Mishalover granted us with a storytime of the first two volumes of Les Ogres-dieux by Hubert and Gat...
|
|
I make it to a lot of conferences these days. I often see colleagues, former colleagues, and friends at these conferences. Sometimes it is friends I haven’t seen in a few years, sometimes I just saw the same person in a different country the week before. Conferences now are much easier for me, in fact it is a bit hard to recall what the experience was like when I first started attending, but I’m at least going to try to give some input so o....
|
|
I make it to a lot of conferences these days. I often see colleagues, former colleagues, and friends at these conferences. Sometimes it is friends I haven’t seen in a few years, sometimes I just saw the same person in a different country the week before. Conferences now are much easier for me, in fact it is a bit hard to recall what the experience was like when I first started attending, but I’m at least going to try to give some input so o....
|
|
Brave New World reacquainted political philosophy with the prurient, after a two thousand year hiatus. Read my Preface to Brave New World
|
|
AI is a contentious term whose mainstream interpretation refers to not one particular thing, but to a broad category encompassing a wide variety of concepts, techniques, and technologies—all eventually working towards the common goal of eliciting “intelligent" behaviour in computers.
|
|
AI is a contentious term whose mainstream interpretation refers to not one particular thing, but to a broad category encompassing a wide variety of concepts, techniques, and technologies—all eventually working towards the common goal of eliciting “intelligent" behaviour in computers.
|
|
Integration Testing in Go: Part I - Executing Tests with Docker
-
www.ardanlabs.com
-
7 years ago
-
eng
Introduction “Testing leads to failure, and failure leads to understanding.” - Burt Rutan Burt Rutan is an aerospace engineer who designed Voyager, the first plane to fly around the world without stopping or refueling. Although Rutan was not a software engineer, his words speak volumes to the importance of testing, even testing software. Testing software in all forms is extremely important, whether it be unit, integration, system..
|
|
An Enigma, unikernels booting on RISC-V, a rack encased in liquid. OH MY.
-
blog.jessfraz.com
-
7 years ago
-
eng
I have written a bit about how I am spending my time while being unemployed and I thought I would continue. There was one thing I had left out of my previous post on my visit to the Pentagon . THEY HAVE A REAL ENIGMA MACHINE THERE. Okay, moving on… QCon and University of Cambridge I gave a talk at QCon on SGX and ended up giving the same talk to some really awesome folks at University of Cambridge. Each time I gave the talk provoked so....
|
|
TIL that multiple cursor's mc/insert-numbers enables you to quickly enter increasing numbers for each cursor. I have mc/insert-numbers bound to # in region-bindings-mode-map. By default, sequence starts at 0, but invoking mc/insert-numbers with prefix enables you to quickly change that. Came in handy when numbering an org table:
|
|
From https://assets.bupa.co.uk/~/media/images/healthmanagement/pdfs/half-marathon-beginner.pdf Starting from week 4: Week Monday Tuesday Wednesday Thursday Friday Saturday Sunday 4 Rest 40 mins easy 30 mins tempo Rest 40 mins cross Rest (03/24) 60 mins 6.7 km 5.1 Km - - 41:51 m 30:00 m 61.3 Kg 60.8 Kg 5 Rest 40 mins easy 30 mins tempo Rest 40 mins interval Rest (03/31) 11 Km 11.9 Km - 5.9....
|
|
Security is a always a balancing act between safety and practicality. If we’re talking about the internet, you can go all the way from something impenetrable and completely useless to something easy to use and also part of a botnet. In the case of the Nextcloud snap’s SSL cipher suite, as with any website, it’s a balance of supporting only the best ciphers while also ensuring that older clients aren’t left out in the cold.
|
|
This one's been bugging me for a while. On macOS, Emacs automatically focuses (raises) other frames when one is closed. This has the unfortunate side-effect that I could be moved from one macOS desktop/space to another when closing an Emacs frame. Finally managed do something about it. Since I install Emacs on macOS via homebrew, a small patch on emacs-plus recipe small patch on emacs-plus recipe did the job. UPDATE: Pull re..
|
|
If you receive `null` for every attribute to your SOAP requests in Spring, after upgrading JDK, this is what you need to do
-
www.databasesandlife.com
-
7 years ago
-
eng
If you have a SOAP service written in Java using Spring, you have written methods that are called with Java objects representing the body of the SOAP request. If, after upgrading from Java 8 to Java 11 , you see that every attribute of those Java objects is null, adding the following to your Maven file is the solution:
|
|
What if we could connect the entire earth's biosphere with the web? This would enable us to empathize more with the world's creatures.
|
|
What is package lock json and how a lockfile works for yarn and npm packages?
-
snyk.io
-
7 years ago
-
eng
In this article we will discuss both npm's package lock file package-lock.json as well as Yarn's _yarn.lock.
|