Tutorial by Examples

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) { ...
when can be used to match enum values: enum class Day { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday } fun doOnDay(day: Day) { when(day) { Day.Sunday -> // Do something Day.Monday, Day.Tuesday -> // Do oth...
Swift let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: 320, height: 200) Objective-C UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(x: 0, y: 0, width: 320, height: 200)];
You can set the minimum and the maximum date that UIDatePicker can show. Minimum date [datePicker setMinimumDate:[NSDate date]]; Maximum date [datePicker setMaximumDate:[NSDate date]];
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...
You can change property minuteInterval to set the interval displayed by the minutes wheel. The default value is 1, the maximum value is 30. let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: 320, height: 200) datePicker.minuteInterval = 15
The NSTimeInterval value of this property indicates the seconds from which the date picker in countdown-timer mode counts down. If the mode of the date picker is not CountDownTimer, this value is ignored. Maximum value is 86,399 seconds (23:59) let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0...
3.0 Beginning with PowerShell 3.0, you can download and update the offline help documentation using a single cmdlet. Update-Help To update help on multiple computers (or computers not connected to the internet). Run the following on a computer with the help files Save-Help -DestinationPath ...
Get-Help can be used to view help in PowerShell. You can search for cmdlets, functions, providers or other topics. In order to view the help documentation about jobs, use: Get-Help about_Jobs You can search for topics using wildcards. If you want to list available help topics with a title start...
You can access online help documentation using: Get-Help Get-Command -Online
Show usage examples for a specific cmdlet. Get-Help Get-Command -Examples
View the full documentation for the topic. Get-Help Get-Command -Full
This code uses the top level Application object to minimize the main Excel window. Sub MinimizeExcel() Application.WindowState = xlMinimized End Sub
You can view help for a specific parameter using: Get-Help Get-Content -Parameter Path
Cassandra will not require users to login using the default configuration. Instead password-less, anonymous logins are permitted for anyone able to connect to the native_transport_port. This behaviour can be changed by editing the cassandra.yaml config to use a different authenticator: # Allow anon...
By default each user will be able to access all data in Cassandra. You'll have to configuring a different authorizer in your cassandra.yaml to grant individual object permissions to your users. # Grant all permissions to all users # authorizer: AllowAllAuthorizer # Use object permissions manage...

Page 787 of 1336