###Useful OS X commands
-
App Store Debug menu
Show
defaults write com.apple.appstore ShowDebugMenu -bool true
Hide
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
###Useful OS X commands
App Store Debug menu
Show
defaults write com.apple.appstore ShowDebugMenu -bool true
Hide
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Data.Entity.ModelConfiguration.Conventions; | |
using System.Data.SQLite; | |
using System.Linq; | |
namespace SQliteEF6 | |
{ | |
class SqliteContext : DbContext |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.Remoting.Messaging; | |
using System.Threading.Tasks; | |
using MassTransit; | |
using MassTransit.Configurators; | |
using MassTransit.PipeBuilders; | |
using MassTransit.PipeConfigurators; | |
using MassTransit.Pipeline; |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using Serilog; | |
using Serilog.Configuration; | |
using Serilog.Core; | |
using Serilog.Events; | |
using Serilog.Formatting; | |
using Serilog.Formatting.Display; |
Follow the instructions here
defaults write com.apple.Dock appswitcher-all-displays -bool true
using Microsoft.Xrm.Sdk; | |
using Microsoft.Xrm.Sdk.Query; | |
using Microsoft.Xrm.Tooling.Connector; | |
using Newtonsoft.Json; | |
using System; | |
using System.Configuration; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.ServiceModel; |