Tutorial by Examples: n

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...
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]];
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...
Splatting is done by replacing the dollar-sign $ with the splatting operator @ when using a variable containing a HashTable of parameters and values in a command call. $MyParameters = @{ Name = "iexplore" FileVersionInfo = $true } Get-Process @MyParameters Without splatti...
Detailed instructions on getting nopcommerce set up or installed.
Capabilities of the Canvas Canvas lets you programmatically draw onto your webpage: Images, Texts, Lines and Curves. Canvas drawings can be extensively styled: stroke width, stroke color, shape fill color, opacity, shadowing, linear gradients and radial gradients, font face, font ...
Recycling can be used in a clever way to simplify code. Subsetting If we want to keep every third element of a vector we can do the following: my_vec <- c(1,2,3,4,5,6,7,8,9,10) my_vec[c(TRUE, FALSE)] [1] 1 3 5 7 9 Here the logical expression was expanded to the length of the vector. ...
Private Sub Get_Last_Used_Row_Index() Dim wS As Worksheet Set wS = ThisWorkbook.Sheets("Sheet1") Debug.Print LastCol_1(wS) Debug.Print LastCol_0(wS) End Sub You can choose between 2 options, regarding if you want to know if there is no data in the worksheet :...
The simplest way to refer to a single cell on the current Excel worksheet is simply to enclose the A1 form of its reference in square brackets: [a3] = "Hello!" Note that square brackets are just convenient syntactic sugar for the Evaluate method of the Application object, so technicall...

Page 641 of 1088