Go to Settings on your Amazon Fire TV. Click My Fire TV option. Click About option in My Fire TV menu Click Fire TV Stick in the About menu: Click that option seven times, clicking it seven times will turn on the Developer Option on your FIre TV. Go back to the previous menu by…More
The best programming blog.
Covering a wide array of programming topics.
Find Android SDK location on mac
In Android Studio on mac go to Preferences >> Appearance & Behavior >> System Settings >> Android SDK. Ususally, it is located at /Users/<UserName>/Library/Android/sdk on MACMore
Copy text to clipboard JavaScript
Below is the code to copy a text to clipboard with JavaScript:More
Setup IMemoryCache return data Xunit
You can make an extension method like below to Setup IMemoryCache to return data while unit testing in Xunit Usage: Namespaces used:More
Setup IMemoryCache return null Xunit
You can make an extension method like below to Setup IMemoryCache to return null while unit testing via Moq in Xunit Usage: Namespaces used:More
Check if cookie exists in php
In PHP, the “isset()” function can be used to check if a cookie exists. This function returns true if a specified variable is set, not null and false otherwise. Here is some sample code that shows how to use the isset() function to check if a cookie called “YourCookieName” exists: You can also use the…More
How to print value of cookie in php
Below is the code to print the value of cookie in php:More
ICacheEntry null IMemoryCache test Xunit
Create the following extension method to set up a fake ICacheEntry while testing IMemoryCache methods in Xunit: Namespaces used: Usage of that method:More
Create mock ICacheEntry IMemoryCache Xunit
You can use the below code to create a mock of ICacheEntry for IMemoryCache mock set up in Xunit: Namespaces used:More
npm get the default author
Run the following command to get the default author set on the current machine for the npm init command: The command will return the default author configured for npm init command. The output will be like this:More