Tutorial by Examples: o

You can see list with all environment variables with: Get-Childitem env:
A PowerShell profile is used to load user defined variables and functions automatically. PowerShell profiles are not automatically created for users. To create a PowerShell profile C:>New-Item -ItemType File $profile. If you are in ISE you can use the built in editor C:>psEdit $profile An ...
#requires -version 4 After trying to run this script in lower version, you will see this error message .\script.ps1 : The script 'script.ps1' cannot be run because it contained a "#requires" statement at line 1 for Windows PowerShell version 5.0. The version required by the script do...
4.0 #requires -RunAsAdministrator After trying to run this script without admin privileges, you will see this error message .\script.ps1 : The script 'script.ps1' cannot be run because it contains a "#requires" statement for running as Administrator. The current Windows PowerShell s...
Google Analytics is used to track user activity on your website or mobile application. To set up google-analytics on a website you will need to get a snippet of JavaScript code from Google that you embed in the head of each page on your site that you want to track user activity. Get the code snipp...
Node.js npm install bluebird Then: var Promise = require("bluebird"); Browsers There are many ways to use bluebird in browsers: Direct downloads Full build bluebird.js Full build minified bluebird.min.js Core build bluebird.core.js Core build minified bluebird.core.min.js...
Detailed instructions on getting jsf-2 set up or installed. Requirements: JDK 1.6+ Java Servlet 2.5 Installing jsf-2 on Tomcat Installing jsf-2 on Glassfish
An expression template is a compile-time optimization technique used mostly in scientific computing. It's main purpose is to avoid unnecessary temporaries and optimize loop calculations using a single pass (typically when performing operations on numerical aggregates). Expression templates were init...
The Java programming language (and its runtime) has undergone numerous changes since its release since its initial public release. These changes include: Changes in the Java programming language syntax and semantics Changes in the APIs provided by the Java standard class libraries. Changes in ...
To install Cucumber for use with Ruby simply use the command gem install cucumber Alternatively, if you are using bundler, you can add the following line to your Gemfile gem 'cucumber' And then run bundler bundle install [I think this belongs in its own topic, Installation. I created tha...
Every Python statement in Vim should be prefixed with the :python command, to instruct Vim that the next command is not Vimscript but Python. To avoid typing this command on each line, when executing multi-line Python code, it is possible to instruct Vim to interpret the code between two marker exp...
Consider these two pieces of code: int a = 1000; int b = a + 1; and Integer a = 1000; Integer b = a + 1; Question: Which version is more efficient? Answer: The two versions look almost the identical, but the first version is a lot more efficient than the second one. The second version is...
In order to begin using WebRTC you need to get camera and microphone permission.For that you need following things: adapter.js, you can get it from here A html webpage with a video tag and little bit of js code The adapter.js is a JavaScript shim for WebRTC, maintained by Google with help fro...
You can organize the execution of your instrumented unit tests defining a Suite. /** * Runs all unit tests. */ @RunWith(Suite.class) @Suite.SuiteClasses({MyTest1.class , MyTest2.class, MyTest3.class}) public class AndroidTestSuite {} Then in AndroidStudio you can run...
Tableau offers a 2 week free trial for all of their licensed products. Tableau also offers licenses to Students for free here and nearly free Desktop licenses for non-profit organizations here. To get started with a free trial, navigate to Tableau Products to see a list of their offerings which inc...
d3.js doesn't have a .off() method to detatch existent event listeners. In order to remove an event handler, you have to set it to null: d3.select('span').on('click', null)
Paste this code into an empty HTML file and run it in your browser. <!DOCTYPE html> <body> <script src="https://d3js.org/d3.v4.js"></script> <!-- This downloads d3 library --> <script> //This code will visualize a data set as a simple scatt...
If the web page a contains phone number you can make a call using your phone's dialer. This code checks for the url which starts with tel: then make an intent to open dialer and you can make a call to the clicked phone number: public boolean shouldOverrideUrlLoading(WebView view, String url) { ...
UIDatePicker has various picker modes. enum UIDatePickerMode : Int { case Time case Date case DateAndTime case CountDownTimer } Time - The date picker displays hours, minutes, and (optionally) an AM/PM designation. Date - The date picker displays months, days of the mon...

Page 600 of 1038