Remove One Drive from Explorer in Windows 10

Even if you disable One Drive it will still show in Explorer. The following registry change will remove One Drive from Explorer

  1. Open regedit
  2. Navigate to HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
  3. Change the DWORD value of System.IsPinnedToNameSpaceTree too 0
  4. You may need to logout to see the change.

OctoPack NuGet versioning order

NuGet packages have version numbers. When you use OctoPack, the NuGet package version number will come from (in order of priority):

  1. The command line, if you pass /p:OctoPackPackageVersion= as an MSBuild parameter when building your project.
  2. If the [assembly: FileVersion] is the same as the assembly: AssemblyInformationalVersion, then we’ll use the [assembly: AssemblyVersion] attribute in your AssemblyInfo.cs file
  3. Otherwise we take the [assembly: AssemblyInformationalVersion].

View Two Websites Side-By-Side With Safari Split View in iOS 10

First split screen only works in landscape mode, not portrait. There three ways to achieve this. 

Open a new tab is split screen

Tap and hold the the tab management icon in the upper right. You will see an option to Open Split View. Tap it to create a blank Safari window. 

Open a link in split view

Tap and hold a link on a web page and select Open in Split View

Drag a tab to open in Split View. 

Tap and hold a tab, then drag it to the side of the screen you want it to open in. 

Remove Edge Extensions Using Powershell

Sometimes the extension Edge become ‘stuck’. They don’t work, Windows Store will attempt to reinstall, but they get stuck in a cycle. Using PowerShell the extension can be removed completely, then reinstalled, which should fix most problems. The below example will remove LastPass.

 

  1. Start PowerShell as an admin
  2. Enter Get-AppxPackage *lastpass* | Remove-AppxPackage

Notepad++ stuck installing a plugin

Sometimes Notepad++ will fail while installing a plugin. This may cause Notepad++ to attempt a reinstall each time the application is started. To stop this happening perform the following steps.

  1. Navigate to %APPDATA%\Notepad++\plugins\Config\
  2. Delete PluginManagerGpup.xml.
  3. Removing this file will also result in a cleanup of the plugin_install_temp directory.

Re-activate Windows 10 after a hardware change

Microsoft introduced a new feature along with Windows 10 Anniversary Update. It’s now possible to link your Microsoft account with the Windows 10 digital license on your device. This allow quick re-activation through the Windows Activation Troubleshooter.

Link you account with a digital license

1. Go to Settings.
2. Click Update & Security
3. Click Activation
4. Click Add an account
5. Enter your MS account details and click sign-in
6. Once complete you will see “Windows is activated with a digital license linked to your Microsoft account”

How to use the troubleshooter to re-activate Windows 10

Once your account is linked your will be able to re-activate windows through the trouble shooter after a hardware change

1. Go to Settings.
2. Click Update & Security.
3. Click Activation.
4. If you see the activation status message: Windows is not activated, then you can click Troubleshoot to continue.
5. Click the “I changed hardware on this device recently” link.
6. Enter your Microsoft account credentials, and click Sign in.
7. You’ll need to enter you local account password if a Microsoft account hasn’t been added to your computer. Click Next to continue.
8. A list of devices associated with your Microsoft account will populate. Select the device you want to re-activate.
9. Check the “This is the device I’m using right now” option, and click the Activate button.

How to Monitor Microsoft IIS

Memory

A memory deficit can drastically reduce the performance of IIS. Here are some important counters you need to keep an eye on:

– Available MB – This is the amount of physical memory immediately available for allocation to a process, or for system use. It is equal to the sum of memory assigned to the standby (cached), free and zero page lists. A healthy system should have more than 50% of its memory available.

– Pages/sec – This is the rate at which pages are read from or written to disk to resolve hard page faults. This counter is a primary indicator of the kinds of faults that cause system-wide delays. It is the sum of Memory\Pages Input/sec and Memory\Pages Output/sec. Pages / sec tracks the numbers of pages, so you can compare it to other counts such as Memory\Page Faults/sec. It includes pages retrieved to satisfy faults in the file system cache (usually requested by applications) non-cached mapped memory files. If this number remains high (e.g. >500), in combination with low Available Mbytes then you could consider memory a possible bottleneck.

CPU

An obvious target of your monitoring plan is CPU utilisation. Here are two key metrics:

– Processor\% Processor Time – This is the percentage of elapsed time the processor spends on a non-Idle thread. It is calculated by measuring the percentage of time the processor spends executing the idle thread and then subtracting that value from 100%. Each processor has an idle thread that consumes cycles when no other threads are ready to run. This counter is the primary indicator of processor activity and displays the average percentage of busy time observed during the sample interval. Here, values above 80-85% would probably raise some questions.

– System\Processor Queue Length – This is the number of threads waiting for processor time when the server’s processors are busy servicing other threads. There is one single queue for processor time even on computers with multiple processors.

The key here is to monitor those two counters together. As a rule of thumb, if queue length is consistently over 2 and % Processor Time remains high, then processors are a bottleneck.

Disk & Network

– Physical Disk\% Disk Time – this is the percentage of elapsed time that the selected disk drive was busy servicing read or write requests. Under normal conditions this counter should stay low.

– Physical Disk\Avg. Disk Bytes/Transfer – This is the average number of bytes transferred to or from the disk during write or read operations. A higher value for this counter indicates an efficient disk.

– Physical Disk\Avg. Disk Queue Length – This is the average number of read and write requests that were queued for the selected disk during the sample interval. As a general rule a value over 2 (per disk, i.e. per counter) for extended periods of time is undesirable.

– Network Interface\Bytes Total/sec – This value is the rate at which bytes are sent and received over each network adapter, including framing characters. High values indicate a large number of successful transmissions.

Web Service Cache

The File Cache counters indicate whether you have enough memory for IIS:

– File Cache Hits – Total number of successful lookups in the user-mode file cache since service startup. The preferred value depends on content. For example, for static content, the value should be high.

– File Cache Hits % – The ratio of user-mode file cache hits to total cache requests (since service startup). A low counter value (combined with a low Kernel: URI Cache Hits % value) could possibly mean that you need to examine why your files are not being cached.

– File Cache Misses – Total number of unsuccessful lookups in the user-mode file cache since service startup.

– File Cache Flushes – The number of files removed from the user-mode cache since service startup.

URI cache counters provide performance metrics regarding websites and web applications that might be running on your server.

– URI Cache Flushes – Counts the number of URI cache flushes that have occurred since the service startup. Files are flushed if a response is taking longer than specified in the threshold or if a file was edited or modified.

– URI Cache Hits – Counts the number of successful lookups in the URI cache since the service startup. A low value for this counter is a strong indication that requests are not finding cached responses.

– URI Cache Hits % – The ratio of URI Cache Hits to total cache requests since service startup.

– URI Cache Misses – Total number of unsuccessful lookups in the user-mode URI cache since service startup. You might want to investigate for issues if this value is high, in combination with a low URI Cache Hits value.

Web Service

These counters provide important information about the number of users accessing the web service and the volume of data exchanged.

– Bytes received/sec – This counter shows the rate that data is received by the Web service.

– Bytes sent/sec – This is the rate that data is sent by the Web service.

– Bytes total/sec – The sum of the two counters above. It indicates the total rate of bytes transferred by the Web service.

– Connection attempts/sec: The rate that connections to the Web service are attempted.

– Get Requests/sec – This is the rate of HTTP GET requests. High values indicate that your web server is overloaded.

– Post Requests/sec – This is the rate HTTP POST requests. Again, high values suggest the need to take measures.

– Current Connections – number of current connections to the Web service. This counter’s interpretation depends upon many variables, such as the type of requests (ISAPI, CGI, static HTML, etc.), CPU utilization, et cetera. So you’d need to do some investigation to triage any underlying issues.

WordPress – Replace default footer copyright info

By default WordPress adds copyright and theme acknowledgement details to the footer. This can be changed by updating the footer.php file.

1. Open the Editor from the Appearance menu.
2. Select the relevant theme and find footer.php under the templates section.
3. Scroll down and you should find a

section or something similar.
4. In this div you should see the footer text, update as necessary and click the Update File button.

Devices and Printers hangs on Windows 7

If you find opening the Devices and Printers results in a blank window, it could be Bluetooth support is disabled. 

Check by typing services into the Search programs and files box on the start menu. 

From the Services window find Bluetooth support right click and select start. If it’s disabled you will need to enable it before the start option is available.