Author Archives: Tom

Setting all indexes to have zero replicas with Elasticsearch

To configure all indexes (including existing ones) to have zero replicas (useful if running on only one server, e.g. in development), execute this (syntax assumes you’re using Sense): PUT /_settings { “index” : { “number_of_replicas” : 0 } } Then … Continue reading

Posted in Uncategorized | Leave a comment

Stdout logging in ASP.NET 1.1.1 Azure Web Apps

Because I keep forgetting it: stdoutLogEnabled=”true” stdoutLogFile=”\\?\%home%\LogFiles\stdout”

Posted in Uncategorized | Leave a comment

RavenDB: CryptographicException & FormatException: Input string was not in a correct format

If you get an error similar to the below and are using encrypted databases, make sure that you’re running the RavenDB process as the same user you were when the databases were created/encrypted. The encryption keys are stored in per-user … Continue reading

Posted in Uncategorized | Comments Off on RavenDB: CryptographicException & FormatException: Input string was not in a correct format

Pukka tea tasting notes

I bought a Pukka teas taster pack a few weeks ago, and kept notes so I could remember which ones I wanted to buy more of. These are my personal tastes and opinions, your results may differ! star anise & cinnamon – … Continue reading

Posted in Uncategorized | Comments Off on Pukka tea tasting notes

PSake: “Exception: Unknown .NET Framework version, 4.6.1 specified in 4.6.1.”

If you get this error, you may have run another PSake script with a different framework version in the same PowerShell session. Open a new PowerShell window and try again.

Posted in Uncategorized | Comments Off on PSake: “Exception: Unknown .NET Framework version, 4.6.1 specified in 4.6.1.”

Rewriting git history – removing a directory

git filter-branch –force –index-filter ‘git rm –cached -r –ignore-unmatch directoryToRemove’ –prune-empty — –all git push origin master –force

Posted in Uncategorized | Comments Off on Rewriting git history – removing a directory

Running IISRESET from Visual Studio

If you want a quick way of running IISRESET from within Visual Studio: Tools > External Tools… Add a new menu item to run C:\Windows\System32\iisreset.exe (note the checkboxes at the bottom)… You then get a new menu item… And the … Continue reading

Posted in Uncategorized | Comments Off on Running IISRESET from Visual Studio

UAC, Windows 10 and Visual Studio

http://stackoverflow.com/questions/12257110/can-you-force-visual-studio-to-always-run-as-an-administrator-in-windows-8 fix.reg: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers] “C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\devenv.exe”=”~ RUNASADMIN”

Posted in Uncategorized | Comments Off on UAC, Windows 10 and Visual Studio

Progressive .NET Tutorials 2015

Microservices in .NET IDL – interface definition language – swagger? Components – don’t know what’s remote SOA – make it being remote explicit Microservices – bounded contexts, eventual consistency Hard to let go of understanding everything QA – just test … Continue reading

Posted in Uncategorized | Comments Off on Progressive .NET Tutorials 2015

How do you type a backslash “\” into the Dell DRAC viewer?

If you have a UK keyboard and try typing backslash into the Dell iDRACView application you might see # appear instead. After a lot of experimentation and frustration, the only way I could find of doing this was to check Keyboard … Continue reading

Posted in Uncategorized | Comments Off on How do you type a backslash “\” into the Dell DRAC viewer?