~/devreads

14 Dec 2022

Omari Thompson-Edwards 4 min read

Environment variables are variables passed to your app when it starts. They’re called so because they’re part of the environment your app will run in. They’re useful for things like telling your application if it’s running in production or development mode, or passing in values like API tokens or API URLs. If you’re looking to […]

next.js

13 Dec 2022

Lindsey Wild 8 min read

Overview Throughout the GitHub User Interface (UI), there are complex search inputs that allow you to narrow the results you see based on different filters. For example, for repositories with GitHub Discussions, you can narrow the results to only show open discussions that you created. This is completed with the search bar and the use of defined filters. The current…

Jennifer Perez-Harris 1 min read

Imagine transforming from a traditional work environment with clear network boundaries and infrastructure to a scattered army of thousands of employees working in all sorts of ways – accessing apps, accessing platforms and accessing cloud-based services. Now, layer in identity, and what it would take to make sure the right people have the right level […] The post Hitachi’s SASE:…

customer focusspotlightcisco umbrelladns-layer securitysase

Omari Thompson-Edwards 3 min read

Splitting an array into chunks might be a common problem you’ll run into in your TypeScript apps. In this article I’ll talk you through my approach, how that works, as well as the Lodash approach. Using Reduce One simple approach to this problem is to use reduce. Reduce is a very useful method for processing […]

typescript

Omari Thompson-Edwards 3 min read

PM2 is a Javascript process manager. It’s used to handle automatically managing your application in the background. A common use case for PM2 is deploying a Node.js app on a server. PM2 can help to handle storing configurations for the app, starting your app and handling things such as automatically starting your app with your […]

next.js

12 Dec 2022

11 Dec 2022

Henrik Warne 5 min read

A few months ago I switched to working in Go. Before that, my main language was Python for many years. The change to Go has been very smooth, without any major surprises or stumbling blocks. This may partly be because … Continue reading →

programminggogolang

6 min read

This is a transcription of videos Elon Musk's appearance on stage with Dave Chapelle using OpenAI's Whisper model with some manual error corrections and annotations for crowd noise. As with the Exhibit H Twitter text message release, there are a lot of articles that quote bits of this, but the articles generally missing a lot of what happened and often…

9 Dec 2022

ericlippert 3 min read

Did I actually build a compiler? Yes and no. Traditionally we think of a compiler as a program which takes as its input the text of a program written in one language (C#, say), and produces as its output an … Continue reading →

uncategorized

1 min read

In this article I’ll cover three techniques to compute special types of polynomial products that show up in lattice cryptography and fully homomorphic encryption. Namely, the negacyclic polynomial product, which is the product of two polynomials in the quotient ring $\mathbb{Z}[x] / (x^N + 1)$. As a precursor to the negacyclic product, we’ll cover the simpler cyclic product. All of…

8 Dec 2022

Omari Thompson-Edwards 3 min read

Axios is a popular library for performing API calls in JavaScript-based apps, including TypeScript. Luckily Axios provides its own TypeScript typings with the library, meaning you don’t need any extra libraries for it to work with TypeScript. Today I’ll talk you through using TypeScript with Axios, by providing a type to their generic functions, and […]

typescript

Omari Thompson-Edwards 3 min read

Function overloading is an OOP feature. It lets you define multiple functions with the same name, but different implementations. TypeScript has semi-support for function overloading; it allows you to to define multiple signatures for the same function, but only one implementation. This can still be useful, however, and in this article, I’ll explain how to […]

typescript

RisingStack Engineering 1 min read

Microservice Weekly, our newsletter about microservices had a great run – we’ve carefully curated the best sources we could find and sent out more than 160 issues to those who wanted to stay up-to-date in the complex world of microservices for years. Here’s a sneak peek if you want to take a look. It was […] The post RisingStack News…

other

Natalie Somersall 7 min read

The cost of hardware is one of the most common objections to providing more powerful computing resources to development teams—and that’s regardless of whether you’re talking about physical hardware in racks, managed cloud providers, or a software-as-a-service based (SaaS) compute resource. Paying for compute resources is an easy cost to “feel” as a business, especially if it’s a recurring operating…

Courtney Webster 3 min read

The December 2022 release of the Python and Jupyter extensions for Visual Studio Code are now available. This release includes auto indentation with Pylance, a preview of Python in the browser and a community highlight. Keep on reading to learn more! The post Python in Visual Studio Code – December 2022 Release appeared first on Microsoft for Python Developers Blog.

python

lukaseder 1 min read

A frequently encountered doubt people have when using jOOQ is to decide when a “complex” query should be written using jOOQ API vs. when it should be implemented using native SQL. The jOOQ manual is full of side by side examples of the same query, e.g. Using jOOQ: Using native SQL: In the native SQL … Continue reading When to…

jooq-in-usejdbcjdbctemplatejdbijooq

Tom Baumgartner 1 min read

The accelerating pace of change in today’s hybrid workplace presents corporate IT teams with two key challenges: Finding a smarter way to manage multi-cloud connectivity and finding a smarter way to protect their organizations from even smarter cyber attackers. Keeping sensitive data safe is getting harder as security teams struggle to connect employees securely to […] The post Cisco Enhances…

products servicescisco umbrelladlp

7 Dec 2022

Developer Relations Team 1 min read

This guide explores app push notifications in-depth, the types, how they work, web vs mobile, and how they work with real time messaging.

Developer Relations Team 1 min read

In this guide, we’ll walk you through how a real-time messaging API works and how it adds value to your platform.

Matthew Green 10 min read

You might have seen the news today that Apple is announcing a raft of improvements to Macs and iOS devices aimed at improving security and privacy. These include FIDO support, improvements to iMessage key verification, and a much anticipated announcement that the company is abandoning their plans for (involuntary) photo scanning. While every single one … Continue reading Why encrypted…

apple

Francesca Minelli 5 min read

A product is first an idea, then a project, and then a prototype. Here, at Mozilla, our awesome community is there every step of the way to support and contribute to our products. None of what we do would be possible without this multicultural, multilingual community of like-minded people working together to be a better internet. The post How the…

featured articlefirefoxlocalizationmozillacommunity

ericlippert 2 min read

Introducing Beanstalk Last time I introduced Bean Machine Graph, a second implementation of the PPL team’s Bayesian inference algorithm. We can compare and contrast the two implementations: In short, the BMG user experience is comparatively not a great experience for … Continue reading →

uncategorized

0xADADA 2 min read

Oscar the Grouch, a character from the popular children’s television show “Sesame Street,” can be seen as a modern-day embodiment of the Hellenistic philosophical tradition of Diogenes the Cynic. Like Diogenes, Oscar rejects the trappings of mainstream society and embraces a simpler, more ascetic lifestyle. In Oscar’s case, this means living in a trash can and rejecting the consumerist values…

notes

8 min read

Long story short: I’m working on a super cool tool called Modal. Please check it out — it lets you run things in the cloud without having to think about infrastructure. Scaling out, scheduling, containerization, using GPUs, setting up webhooks, and all kinds of other stuff. It’s primarily meant for data teams. We aren’t quite live, but you can sign…

1 min read

In 2022 a consortium of companies ran an international competition, called the ZPrize, to advance the state of the art in “zero-knowledge” cryptography. We decided to have a go in our free time at submitting solutions to both the Multi-Scalar Multiplication (MSM) and Number Theoretic Transform (NTT) tracks, using the same open source Hardcaml libraries that Jane Street uses for…

6 Dec 2022

5 Dec 2022

ericlippert 3 min read

Introducing Bean Machine Graph Bean Machine has many nice properties: I’m not going to go into details of how Bean Machine proper implements inference, at least not at this time. Suffice to say that the implementation of the inference algorithms … Continue reading →

uncategorized

hello@taniarascia.com 3 min read

Recently on a project I was working on I noticed every page was importing in order to display the unique page title, like this: For an app…

4 Dec 2022

Omari Thompson-Edwards 4 min read

Next.js provides multiple methods of pre-rendering your content for your app. You can check out a comparison of these different methods here, but today I’ll be covering Static Site Generation with getStaticProps(). Static Site Generation pre-renders your content at build time, so that it can serve that part of your app as a static HTML […]

next.js

Omari Thompson-Edwards 4 min read

Modals are a very useful piece of UI, used to display separate pieces of information, like dialog boxes. You can implement modals very easily in React, thanks to some useful patterns, like the state hooks, and the context API. In this article, I’ll talk you through building a basic, but very extensible modal system. Here’s […]

tutorials

2 Dec 2022

ericlippert 3 min read

As I mentioned in the previous episode, the entire Bean Machine team was dissolved; some team members were simply fired, others were absorbed into other teams, and some left the company. In this series I’m going to talk a bit … Continue reading →

uncategorized

MapTiler (Luis Suter) 1 min read

Get high resolution satellite imagery for your specified date and location. MapTiler and Satellogic have partnered to bring you tasked imagery at the most competitive prices, ready for use in your web maps and apps.

1 Dec 2022

Jacob 4 min read

Image Credits: Kumkum Jain Drishti (she/her/hers) works as a Software Developer Engineer (SDE) at Blinkit . She joined us about six months ago and is now a part of the tech team within the Product Listing and Search pod. She’s always had the inclination to work at scale while making an impact and shipping a customer-first experience. In this post,…

culturehumans-of-blinkitpeoplewomen-in-techsofware-engineering

hello@taniarascia.com 7 min read

Hi there. It's December 2022. How are you doing? This has been a slow year for me. I'm going to write a little post to let you know what I…

30 Nov 2022

Developer Relations Team 1 min read

Learn how secure messaging solutions equip developers with the tools they need to ensure data protection across any number of users and devices.

Omari Thompson-Edwards 4 min read

Strapi is a headless CMS, or Content Management System. If you’ve ever used a site editor like WordPress or Squarespace, these give you a back-end CMS, where you edit the content, and the front-end “head”, which handles displaying/rendering your content. With a headless CMS like Strapi, you can manage your content in the back-end, and […]

next.js

Omari Thompson-Edwards 4 min read

Markdown is a simple syntax for formatting text files. If you’re used to GitHub, you’re probably familiar with creating and editing readme.md files in your repos. MDX is an extension of markdown that adds support for JSX. Using Next.js’ Static Site generation, we can create a very simple to use, fast and light blog, with […]

next.js

ericlippert 4 min read

It’s been almost two years since my last update here. A lot has happened. I hope you all are continuing to weather the ongoing multiple global pandemics and other anthropogenic crises. Apologies that this is so long; I didn’t have … Continue reading →

uncategorized

1 min read

We’ve trained a model called ChatGPT which interacts in a conversational way. The dialogue format makes it possible for ChatGPT to answer followup questions, admit its mistakes, challenge incorrect premises, and reject inappropriate requests.

product

29 Nov 2022

28 Nov 2022

26 Nov 2022

2 min read

What is this? Stateful tests are obviously tests that rely on state What makes these different than other tests? You have to set up the…

25 Nov 2022

Omari Thompson-Edwards 3 min read

GitHub Pages is a great free resource for hosting unlimited static sites. You can build your Next.js app into a static site using Next’s export feature. There are a few features of Next.js you won’t be able to use with this, but in this article, I’ll talk you through deploying your app, and what you […]

next.js

Omari Thompson-Edwards 5 min read

LocalStorage is an API that lets your site store things in the browser, to persist things when you leave the site. If you’ve ever wondered how browsers do things like save your settings and preferences, there’s a good chance they’re using LocalStorage. Checking the website for the game Wordle, for example, we can see what […]

next.js

24 Nov 2022

Ole Begemann 2 min read

The clipped() modifier in SwiftUI clips a view to its bounds, hiding any out-of-bounds content. But note that clipping doesn’t affect hit testing; the clipped view can still receive taps/clicks outside the visible area. I tested this on iOS 16.1 and macOS 13.0. Example Here’s a 300×300 square, which we then constrain to a 100×100 frame. I also added a…

23 Nov 2022

1 min read

The Dojima rice market, established around 1716, is widely considered to be the world’s first organized futures exchange. Instead of directly exchanging money for rice on the spot, merchants would agree on a price and future date at which rice and money would be exchanged. This allowed farmers and consumers to hedge their risk. As a result, information about the…

22 Nov 2022