This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
declare @result int | |
SET @result = (NEXT VALUE FOR dbo.auto_seq) | |
select @result |
https://learn.microsoft.com/en-us/azure/azure-monitor/app/ilogger | |
This helped me REDIRECT on Auth Failed! | |
https://github.com/dotnet/aspnetcore/issues/22596 | |
OnAuthenticationFailed = context => | |
{ | |
context.Response.Redirect("/Error"); | |
context.HandleResponse(); // Suppress the exception | |
return Task.CompletedTask; | |
}, |
I am annoyed as fck there is no point-and-click UI to do this; | |
Hence these notes as a reminder; | |
FIRST INSTALL via NuGet in YOUR project (NB: you may have multiple projects in the solution!) | |
a) 'Microsoft.EntityFrameworkCore.Tools'; choose same Framework version that your project will target; | |
b) 'Microsoft.EntityFrameworkCore.SqlServer'; choose the PROVIDER you want to use in the Scaffold-DbContext command. | |
++++++++ | |
0) Open the (Nuget) package manager console: Tools /NuGet PM / PM Console | |
1) **EXAMPLE**: (all on one line) |
Chrome Browser's SQLite location: | |
C:\Users\<user-name>\AppData\Local\Google\Chrome\User Data\Default\databases | |
//#1. for . . . in | |
//By looping through the keys, you can get the value using object[key] | |
const object = { | |
name: "Cindi", | |
language:"js" | |
} | |
for(const key in object){ | |
const value = object[key] |
This document now exists on the official ASP.NET core docs page.
# Create a new caption file | |
~~~~~~~~ | |
ffmpeg -i captions.srt captions.ass | |
~~~~~~~~ | |
# Add subtitles to main video without changing it | |
~~~~~~~~ | |
ffmpeg -i video.mp4 -vf "subtitles=captions.ass:force_style='OutlineColour=&H80000000,BorderStyle=4,Outline=1,Shadow=0,MarginV=20'" subtitled-video.mp4 |
/*jslint devel: true, browser: true, es5: true */ | |
/*global Promise */ | |
var promiseCount = 0; | |
function testPromise() { | |
'use strict'; | |
promiseCount += 1; | |
var thisPromiseCount = promiseCount; |
/*jslint devel: true, browser: true, es5: true */ | |
/*global Promise */ | |
// $http function is implemented in order to follow the standard Adapter pattern | |
function $http(url) { | |
'use strict'; | |
var core = { | |
// Method that performs the ajax request | |
ajax : function (method, url, args) { |