This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
REM Delete eval folder with licence key and options.xml which contains a reference to it | |
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
rd /s /q "%%a/config/eval" | |
del /q "%%a\config\options\other.xml" | |
) | |
) | |
REM Delete registry key and jetbrains folder (not sure if needet but however) | |
rmdir /s /q "%APPDATA%\JetBrains" |
This course provides a structured approach for designing and implementing large systems that are scalable and highly available.
The challenges designing and building large systems are in how they are decomposed and communicate with each other. You will learn how to define boundaries based on business capabilities and implement asynchronous messaging for communication.
This course will show architectural patterns and styles that create a system that is resilient when failures occur. And when load and traffic increases are scalable horizontally on-demand as required.
I've developed this course based on my over two decades of experience designing and developing business systems in distribution, transportation, manufacturing, and accounting.
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var telemetryClient = new TelemetryClient(new TelemetryConfiguration("APP_INSIGHTS_KEY")); | |
var mongoConnectionString = "mongodb://localhost:27017/test"; | |
TrackMongoByEvents(mongoConnectionString, telemetryClient); | |
TrackMongoManually(mongoConnectionString, telemetryClient); |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
#!/bin/bash | |
# | |
# You can use `git branch --edit-description` to write a description | |
# for a branch, but Git provides no simple command to display that | |
# description. The "easiest" way to see it is via `git config --get | |
# branch.BRANCH_NAME.description`. | |
# | |
# This script automates that process and is meant to be used as | |
# a Git alias to provide a shorter command for showing the | |
# description of the current branch. |
#region TEST "Request.Content.ReadAsStreamAsync()" | |
var provider = new MultipartMemoryStreamProvider(); | |
await Request.Content.ReadAsMultipartAsync(provider); | |
foreach (var item in provider.Contents.Where(item => item.Headers.ContentDisposition.FileName != null)) | |
{ | |
Stream streamRead = await item.ReadAsStreamAsync(); |
// See http://megatuto.com/formation-JAVASCRIPT.php?JAVASCRIPT-Examples=handling+document.visibilitychange+in+AngularJS+Categorie+javascript+angularjs&article=1773 | |
angular.module('myApp', []) | |
.run(['$rootScope', '$document', function($rootScope, $document) { | |
$document[0].addEventListener("visibilitychange", function() { | |
$rootScope.$broadcast('$visibilitychange', $document[0].hidden); | |
}); | |
}]) | |
.controller('UserNavCtrl', ['$scope', '$log', | |
function($scope,$log) { | |
$scope.$on('$visibilitychange', function(event, data) { |
To use this hook:
prepare-commit-msg
file at .git/hooks/prepare-commit-msg
and edit as neededchmod +x .git/hooks/prepare-commit-msg
git config branch.master.mergeoptions "--no-ff"
NOTE: after a failed merge from a forbidden branch, the working tree will still be in a MERGING state. To discard the local working copy state, run:
git reset --merge
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"fmt" | |
"io" | |
) |