Here's how to set up a URL to redirect to after logout in Django.Make a URL PathIn one of your app's urls.py files, create the urlpattern:from django.contrib.auth import views as auth_views from django.urls import path from myproj import settings urlpatterns = [ path('logout/', auth_views.LogoutView...
Here's how to make cypress intercepts return dynamic responses.Mock Network ResponsesCypress allows you to do functional testing in a browser. You can intercept network requests that you want to mock. Any request matching such a pattern will return the mocked response. But there may be times that yo...
My favorite RSS reader is Newsboat. Get it and use it.Long Live RSSI don't want a news feed, an endless scroll of suggestions or an email newsletter. Or ads and the marketing tech that goes with it.What I'd rather: Track what content I'm interested in online, decide I want to see it sometime, ask wh...
These are some of my favorite or easily-forgotten Davinci Resolve shortcuts and operations.And can I just say that Davinci Resolve is awesome video editing software! Thank you Black Magic!Select All on Timeline"All" as in all clips on all tracks in relation to the timeline cursor.y - select all in f...
Helios is a microkernel written in the Hare programming language, and the subject of a talk I did at FOSDEM earlier this month. You can watch the talk here if you like: A while ago I promised someone that I would not do any talks on Helios until I could present them from Helios itself, and at FOSDEM...
Helios is a microkernel written in the Hare programming language, and the subject of a talk I did at FOSDEM earlier this month. You can watch the talk here if you like: A while ago I promised someone that I would not do any talks on Helios until I could present them from Helios itself, and at FOSDEM...
So you need to build an application with minimal operating costs that can also scale to meet the growing demand of your business. This is a perfect scenario for a serverless function, like those built... The post Getting Started with MongoDB Atlas and Azure Functions using .NET and C# appeared first...
So you need to build an application with minimal operating costs that can also scale to meet the growing demand of your business. This is a perfect scenario for a serverless function, like those built with Azure Functions. With serverless functions you can focus more on the application and less on t...
Here's a walkthrough for backing up your dotfiles on git.What are dotfiles"Dotfiles" are those files that sit in some root directory, are hidden by their . prefix and configure stuff.A common example is the configuration file for your code editor.In nvim, this is the file at ~/.config/nvim/init.lua....
Letβs talk about technical debt. Letβs talk about practical usable approaches for actually paying it down on a daily, weekly, monthly, and yearly basis. Letβs talk about what debt needs to be fixed now versus what can wait for better planning.
Here's how to make Call task channel icons dynamic in Twilio Flex 2.Most New ChannelsThis method usually works for new channels. We make a new task channel. We define which tasks belong to it. We can define the icons that show up for that channel. Here it is:const channel = flex.DefaultTaskChannels....
Promise.all and Promise.allSettled act differently. Let's explore this beautiful variety:Test HarnessLet's set up a little test to see what the differences are. This test has some Promises that fail (and reject) and some Promises that win (and resolve).Where it's set up now to Promise.all, in later ...
Last quarter, we created a βcore-podβ engineering team that has slowly been tackling core improvements, like bug fixes and performance updates, as well commonly asked feature requests sourced through Github and Twitter. Though they seem like small changes, each one has a big impact on Warpβs usabili...