Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
Couple of my hobbies are travelling and photography. I love to take pictures and experiment with photography. Usually after my trips, I just copy the photos to either my iPad or couple of my external hard disks. After 10 years, I have over 200K photos distributed across several disks and machines. I had to find a way to organize these photos and create a workflow for future maintenance. In this post I want to address one of the issues I had to solve: ** finding duplicate images **.
First, I needed to find out what exactly is a duplicate image. Analysing my photos, I found couple of interesting things:
public class Args : Dictionary<string,object>{} | |
public class MyIoc | |
{ | |
private Dictionary<Type, Dictionary<string, Func<Args, object>>> _registry | |
= new Dictionary<Type, Dictionary<string, Func<Args, object>>>(); | |
public void Register<T>(Func<Args, T> factory, string name = "") where T : class | |
{ | |
Type t = typeof(T); |
define(['jquery', 'app'], function ($, app) { | |
return app.factory('Acronym', [function () { | |
var factory = { | |
desiredKeyLength: 2, | |
maxKeyLength: 5, |
Using the ASP.NET bundling and minifications is pretty straight forward, but here is a small guide that take care of a few gotchas when implementing bundles in your Umbraco project.
ASP.NET Bundling and Minifications is part of the Microsoft ASP.NET Web Optimization Framework and is installed via NuGet;
PM> Install-Package Microsoft.AspNet.Web.Optimization
Once this is done, you need to create a BundleConfig.cs
in your App_Start
1 folder. This is where you register your different bundles. It can be extremely simple, or it can be more complex, but the gist of it is this;
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics.Contracts; | |
using System.Web.Http.Dependencies; | |
using Ninject; | |
using Ninject.Syntax; | |
public class NinjectDependencyScope : IDependencyScope | |
{ | |
private IResolutionRoot resolver; |
Import-Module "PATH_TO_Microsoft.ServiceBus.dll" | |
#Create the required credentials | |
$tokenProvider = [Microsoft.ServiceBus.TokenProvider]::CreateSharedSecretTokenProvider("owner", "YOUR_ISSUERSECRET") | |
$namespaceUri = [Microsoft.ServiceBus.ServiceBusEnvironment]::CreateServiceUri("sb", "YOUR_NAMESPACE", ""); | |
$namespaceManager = New-Object Microsoft.ServiceBus.NamespaceManager $namespaceUri,$tokenProvider | |
#Create a queue | |
$queue = $namespaceManager.CreateQueue("MyPowershellQueue"); |
/* | |
* Original version by Stephen Toub and Shawn Farkas. | |
* Random pool and thread safety added by Markus Olsson (freakcode.com). | |
* | |
* Original source: http://msdn.microsoft.com/en-us/magazine/cc163367.aspx | |
* | |
* Some benchmarks (2009-03-18): | |
* | |
* Results produced by calling Next() 1 000 000 times on my machine (dual core 3Ghz) | |
* |