~/devreads

29 Jun 2020

Dmytro Khmelenko 2 min read

Our main Freeletics app like many other modern mobile applications often uses client-server communications. It means that the data should be loaded from the server before being shown to the user. Therefore, the most common pattern while building features is: show progress indicator while we perform the network request to fetch some data from the backend (Loading state); after receiving…

28 Jun 2020

Schakko 3 min read

The error org.postgresql.util.PSQLException: ERROR: operator does not exist: my_enum_type = character varying can be fixed by using implicit conversions in PostgreSQL or using explicit conversions by passing the java.sql.Types.OTHER to Spring JDBC. The exception you will receive When using Spring JDBC or Spring Data JDBC and custom Java enum types, […] The post How to fix “PSQLException: ERROR: operator does…

spring framework

26 Jun 2020

25 Jun 2020

ericlippert 6 min read

Code for this episode is here. A couple episodes back we did a first cut at implementing Stafford’s algorithm using the triplet data structure to store the current and upcoming states of three cells and their living neighbour counts, all … Continue reading →

conwayslife

2 min read

How do you setup your dev environment? Depending on your language there are many choices of editor, package manager, build tool, linter, on and on. And every article you find will have a different combination of suggested tools, each of which claiming that their list is The Right Way To Do Things. So which do you choose? The short answer:…

24 Jun 2020

Nancy Hang 2 min read

Mozilla WebThings Gateway is an open source software distribution focused on privacy, security, and interoperability. It provides a web-based user interface to monitor and control smart home devices over the web. OKdo, a UK vendor offerings IoT technology for hobbyists, educators, and entrepreneurs, has announced the release of the WebThings Gateway Kit, with everything you need to get the Gateway…

featured articlehardwareiotmozilla webthingswebthings

0xADADA 2 min read

Good Evening, my name is ███████ I am a 10 year resident of Ward █ in Somerville. The first steps to address the problem of systemic racism in Somerville is two-fold: Defund the police by at least 60% or more; and Hold the Mayor accountable to direct these funds to non-disciplinary social programs; and stop internal line-item transfers to the…

essaysanti-racismtalkspoliceanti-police

23 Jun 2020

David Walsh 1 min read

The CSS spec is full of gems that sneak their way past most of us web designers and developers. Stuff like :focus-within, prefers-reduced-motion, and prefers-color-scheme suddenly make their way into CSS without us really finding out for months or years. One such example is background-repeat: round. background-repeat: round repeats a background image without clipping! Addy Osmani’s tweet beautifully depicts the…

1 min read

Browser extensions give people a way to take control of how they experience the web. This week Apple has announced that Safari is adopting a web-based API for browser extensions similar to Firefox’s WebExtensions API, making it easy to build once and run in multiple browsers. Developers can get started with Firefox Extension Workshop or consult the comprehensive documentation on…

featured articleweb apisadd-ons

srinivas.tamada@gmail.com (Srinivas Tamada) 1 min read

Few days back I posted an article about how to implement restful apis using the Node Express and MySql. In this post I am going to discuss deploying NodeJS RESTful apis with Express framework to the Firebase functions. This is helpful when you deal with external endpoints which need secret keys. Google Firebase functions as an alternate product for Amazon…

expressfirebasenoderestful

22 Jun 2020

ericlippert 4 min read

Code for this episode is here. We’ll take a short break from getting to our C# version of Stafford’s algorithm; in this episode I want to talk about some improvements to the UI, and also talk about some more fundamental … Continue reading →

conwayslife

1 min read

When working on command-line utilities which can be useful for various platforms, from Windows on x86 to Linux on MIPS, the existence of a cross-compilation is highly attractive. A number of different binaries can be constructed conveniently from a single, typically powerful host system.

Emre Havan 15 min read

As iOS developers, we often need to implement tracking in our applications. There are many third-party frameworks that would allow us to implement tracking systems in our projects. But in this article, we are going to talk about how we have implemented our custom tracking infrastructure at Freeletics with the help of CoreData, without using any third party framework. Our…

1 min read

At Jane Street, we have some experience using FPGAs for low-latency systems–FPGAs are programmable hardware where you get the speed of an application-specific integrated circuit (ASIC) but without being committed to a design that’s burned into the chip. It wasn’t so long ago that FPGAs were expensive and rare, but these days, you can rent a $5,000 card on the…

21 Jun 2020

Stanko 1 min read

Earlier today I removed Google Analytics script from my website. Long time ago I switched to self hosted fonts instead of Google Fonts. That means, as of today, my blog is completely Google free. Google Analytics is a great product, but I probably used up to five percent of it's features. Still I had a fear of missing out. That's…

20 Jun 2020

19 Jun 2020

Dave Cheney 1 min read

The Go compiler’s SSA backend contains a facility to produce HTML debugging output of the compilation phases. This post covers how to print the SSA output for function and methods. Let’s start with a sample program which contains a function, a value method, and a pointer method: Control of the SSA debugging output is via […]

goprogrammingcompilergossafuncssa

MapTiler (Adam Laza) 1 min read

The new QGIS 3.14 version adds support for the native loading of vector tiles. The easiest way to load them is via the recently released plugin.

18 Jun 2020

ericlippert 8 min read

Source code for this episode is here. We are continuing with our project to gradually morph Abrash’s “remember the living neighbour counts” algorithm into Stafford’s algorithm. I’m going to start today by adding two very small bit-twiddling optimizations to the … Continue reading →

conwayslife

Yulia Startsev 3 min read

Yulia Startsev, a JavaScript engineer on Firefox's SpiderMonkey team, introduces her new Twitch stream called Compiler Compiler. In the three opening interactive episodes, we get an inside look at how the JavaScript Specification, ECMA-262, is implemented in SpiderMonkey, by reading the spec and fixing issues in the implementation. The post Compiler Compiler: A Twitch series about working on a JavaScript…

featured articlefirefoxjavascriptecmascriptspidermonkey

17 Jun 2020

Schakko 2 min read

Zum 01.07.2020 und 31.12.2020 werden in Deutschland die Umsatzsteuersätze von 19% auf 16% bzw. dann wieder auf 19% geändert. Dies hat die deutsche Bundesregierung am 3. Juni 2020 verkündet und seit dem 12. Juni 2020 als Gesetzesentwurf vorliegt. Dies bedeutet für viele Shop-Betreiber eine Nachtschicht. Die Umstellung der Mehrwertsteuer hat […] The post Automatische Anpassung der Mehrwertsteuer in WooCommerce zum…

wordpress

1 min read

We find that, just as a large transformer model trained on language can generate coherent text, the same exact model trained on pixel sequences can generate coherent image completions and samples. By establishing a correlation between sample quality and image classification accuracy, we show that our best generative model also contains features competitive with top convolutional nets in the unsupervised…

research

16 Jun 2020

15 Jun 2020

ericlippert 6 min read

Code for this episode is here. Where were we? I was gradually changing Abrash’s “remember the neighbour counts” into Stafford’s algorithm from an early 1990s optimization contest. In this series I’m going to illustrate the algorithm in C#, and we’ll … Continue reading →

conwayslife

14 Jun 2020

13 Jun 2020

12 Jun 2020

11 Jun 2020

Chris Mills 5 min read

The MDN Web Docs Learning Area teaches fundamentals of modern web development, beginning with HTML, CSS, and JavaScript essentials. In feedback this year, readers asked for a more opinionated, structured approach. They asked for coverage of client-side tooling, frameworks, transformation tools, and deployment tools widely used in today's workplace. Meet the Front-end developer learning pathway from MDN. The post Introducing…

featured articlemdncssframeworksfront-end development

ericlippert 8 min read

Source code for this episode is here. Before we get into today’s episode proper, a quick note. I’ve updated the client so that it now supports the ability to load a pattern off disk, execute that pattern, and “reset” back … Continue reading →

conwayslife

David Walsh 1 min read

Whenever I suspect that there’s a timing conflict causing a problem with rendering and directives, I usually opt for a JavaScript setTimeout with a delay. The setTimeout code never makes it to production, but it does help me to understand if my code is the problem or if there’s a timing conflict. In working with Kotlin on Android, I’ve needed…

1 min read

... because, at every new incident, your fortitude was to be called forth, and your courage exhibited; because danger and death surrounded it, and these you were to brave and overcome. For this was it a glorious, for this was it an honourable undertaking.

10 Jun 2020

MapTiler (Petr Pridal) 1 min read

Open-source plugin for QGIS that loads fast vector maps. Change colors and fonts of the map to get unique look.

9 Jun 2020

Henrik Warne 8 min read

Because of the Corona pandemic, our whole company has now been working from home for 12 weeks. Before, we mostly worked in the office, although occasionally people would work from home, for example when waiting for a delivery. This abrupt … Continue reading →

workremotewfhworking from home

Florian Scholz 5 min read

Tenemos ante nosotros una nueva versión estable de Firefox. La versión 77 viene con varias novedades para los desarrolladores web. En este artículo se presenta simplemente un conjunto de los aspectos más destacados. Para conocer todos los detalles, consulte lo siguiente: Firefox 77 para desarrolladores en MDN Notas de la versión de usuario final de […] The post Nuevo en…

firefoxfirefox 77firefoxdevtools

Florian Scholz 1 min read

全新 Firefox 穩定版正式推出!第 77 版為開發者提供了更多新功能。 這篇文章包含新版本中的精彩亮點,想了解完整資訊,請瀏覽以下網頁: MDN Firefox 77 開發人員專區 Firefox 77 一般用戶更新資訊 開發者工具改善 讓我們先來看看第 77 版開發者工具中最有趣的優化與創新。如果你想使用更多開發中的新功能,並提供建議,請安裝 Firefox 開發者版本即可搶先體驗。 更快、更有效的 JavaScript 除錯 大型 Web 應用程式對開發者工具來說無疑是一項艱難的挑戰,因為需要快速而正確地處理捆綁(bundling)、實時重載(live reload)和相依性。 Firefox 77 的 Debugger 學了一些新技巧,讓你可以因此更加專注於除錯。 在先前的許多版本中,我們持續致力於提升除錯性能,也幾乎除光了影響層面最嚴重、可處理的問題。為了找出剩餘的瓶頸,我們一直積極地和社群保持聯繫。得益於我們收到的許多詳細回報,我們終於能夠改善除錯的效率,不僅提升暫停和步進速度,也減少記憶體長期用量。 就是會動的 JavaScript 和 CSS Source Map

firefox 77firefoxdevtools

Florian Scholz 1 min read

全新Firefox稳定版现已推出。版本77为Web开发人员带来了诸多新功能。 本文只是归纳了一些亮点;如需了解详细信息,请参见以下资源: MDN上的Firefox 77开发人员须知 Firefox 77最终用户发行说明 开发人员工具改进 首先来看看版本77中最值得关注的开发人员工具改进和补充。若要进一步了解进行中的工作并提供反馈,请下载Firefox DevEdition来抢先体验。 JavaScript调试更快速、更精简 大型Web应用可能会给DevTools带来挑战,因为捆绑、实时重载和依赖项都需要得到快速、正确地处理。在版本77中,Firefox的调试器有了更多本领,让您能够专注于调试。 我们经过多个发行版本改进了调试性能,在寻找可动手的高影响力Bug错误方面即将达到终点。因此,为了能找到残留的瓶颈,我们积极与社区交流。我们收到了许多详细的报告,实现了诸多性能改进,不仅加快了暂停和分步执行,同时也降低了不同时间点上的内存占用。 行之有效的JavaScript和CSS源映射 源映射是这次扩展的组成部分,在性能增强方面功效显著。部分内联源映射在加载时间上提升了10倍。但更重要的是,我

8 Jun 2020

David Walsh 2 min read

Monetizing content on the web usually boils down to one thing: advertisements. The problem with adding advertisements to your website, especially from the popular ad services, is that they can be slow and they certainly don’t protect user privacy. That’s where alternative monetizing opportunities come into play. Let’s take a quick look at a few alternative ways that bloggers, streamers,…

7 Jun 2020

6 Jun 2020

5 Jun 2020

0xADADA 1 min read

Looting is an obvious response to the glorification of consumer products— commodities in a society that worships conspicuous consumption. The very act of looting is resistance to the celebrity status of these commodities and what they imply: inanimate objects celebrated for the image, status, and privilege they create, and the way that privilege is assumed to confer the protection of…

essayseconomicsactivism

4 Jun 2020

Schakko 5 min read

For ninkik I wanted to provide a subdomain for each of our customers. In addition to that, I wanted to use some other subdomains for static and dynamic content. At that moment I did explicitly not wanted to deal with microservices or multiple applications.When receiving a request, Spring should do […] The post Handling subdomains in multi-tenant applications with Spring…

spring framework

Iain Ireland 8 min read

Regular expressions – commonly known as RegExps – are a powerful and heavily used tool for manipulating strings in JavaScript. This post describes how we updated the RegExp engine in SpiderMonkey, Firefox's JavaScript engine, by building a shim layer to V8's Irregexp. The outcome: reduced maintenance and stronger collaboration among the browsers, full support for all the new RegExp features,…

featured articlefirefox development highlightsjavascriptirregexpregexp

3 Jun 2020

2 Jun 2020

Florian Scholz 4 min read

Firefox 77 is now available with a variety of developer tool updates and new web platform features. With your feedback, we've removed performance bottlenecks, resulting in faster, leaner JavaScript debugging. We also report on some changes to Firefox extensions, including fewer permission requests. The post New in Firefox 77: DevTool improvements and web platform updates appeared first on Mozilla Hacks…

featured articlefirefoxfirefox development highlightsfirefox releasesjavascript

8 min read

This is an archive of an old pseudonymously written post from the 90s from someone whose former pseudonym seems to have disappeared from the internet. I see that Star Trek: Voyager has added a new character, a Borg. (From the photos, I also see that they're still breeding women for breast size in the 24th century.) What ticked me off…

ericlippert 3 min read

First off, a brief programming note: now is not the right time to continue with the usual topic of this blog: a lighthearted exploration of algorithmic complexity and optimization. We’ll get back to that at a later date. I have … Continue reading →

non-computer

1 Jun 2020

1 min read

At Jane Street, an “expect test” is a test where you don’t manually write the output you’d like to check your code against – instead, this output is captured automatically and inserted by a tool into the testing code itself. If further runs produce different output, the test fails, and you’re presented with the diff.

31 May 2020

18 min read

A lot of people seem to think that distributed tracing isn't useful, or at least not without extreme effort that isn't worth it for companies smaller than FB. For example, here are a couple of public conversations that sound like a number of private conversations I've had. Sure, there's value somewhere, but it costs too much to unlock. I think…

1 min read

Even though Ubuntu/Debian is equipped with its legendary powerful package manager, dpkg, in some cases, it is still beneficial to take advantage of Nix, a purely functional package manager.

30 May 2020

18 min read

We spent one day1 building a system that immediately found a mid 7 figure optimization (which ended up shipping). In the first year, we shipped mid 8 figures per year worth of cost savings as a result. The key feature this system introduces is the ability to query metrics data across all hosts and all services and over any period…

29 May 2020