Tutorial by Examples: l

XML file: <ViewFlipper android:id="@+id/viewflip" android:layout_width="match_parent" android:layout_height="250dp" android:layout_weight="1" /> JAVA code: public class BlankFragment extends Fragment{ ViewFlipper viewFl...
Button API provides an easy way to assign common keyboard shortcuts to buttons without the need to access accelerators' list assigned to Scene or explicitly listening to the key events. Namely, two convenience methods are provided: setDefaultButton and setCancelButton: Setting setDefaultButton ...
Detailed instructions on getting gmail-api set up or installed.
BigDecimal provides static properties for the numbers zero, one and ten. It's good practise to use these instead of using the actual numbers: BigDecimal.ZERO BigDecimal.ONE BigDecimal.TEN By using the static properties, you avoid an unnecessary instantiation, also you've got a literal in you...
The LineChart class presents the data as a series of data points connected with straight lines. Each data point is wrapped in XYChart.Data object, and the data points are grouped in XYChart.Series. Each XYChart.Data object has two fields, which can be accessed using getXValue and getYValue, that co...
/** * Save the results from the saved search as .csv and store in file cabinet * Get the file's internal id when loading the file * Use \n to process each row * Get the internal id and whatever columns that need updating * Create a filtered search and pass the internal id * If the passe...
If you have the following data file cat data.csv 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 maybe you need to read the fourth column of the third line, this would be "24" awk 'NR==3 ...
This example illustrates how to plot a time series of temperature from a csv data file. library(ggplot2) # Original data not provided, see subset/plotted data below datos.orig<-read.csv("data.csv",header=TRUE) # read csv data # Change dates to POSIXct fecha<-as.data.frame(a...
// Add MPVolumeView in a holder view let mpVolumeHolderView = UIView(frame: CGRect(x: 0, y: view.bounds.midY, width: view.bounds.width, height: view.bounds.height)) // Set the holder view's background color to transparent mpVolumeHolderView.backgroundColor = .clear let mpVolume = MPVolumeView(fr...
Here, "table" is meant broadly (covering data.frame, table, Printing to plain text Printing (as seen in the console) might suffice for a plain-text document to be viewed in monospaced font: Note: Before making the example data below, make sure you're in an empty folder you can write to....
Consider you have a Parent Frame(Frame-Parent). and 2 child frames(Frame_Son,Frame_Daughter). Lets see various conditions and how to handle. 1.From Parent to Son or Daughter: driver.switchTo().frame("Frame_Son"); driver.switchTo().frame("Frame_Daughter"); 2.From Son to Pa...
In quite a few cases your frame might not show up immediately and you probably have to wait till it is loaded to switch. Or else you will have NoSuchFrameException. So its always a good choice to wait before you switch. Following is a ideal way to wait till a frame is loaded. try{ new Web...
This example assumes two servers: dbserver (where our database lives) appclient (where our applications live) FWIW, both servers are SELinux enforcing. First, log on to dbserver Create a temporary directory for creating the certificates. mkdir /root/certs/mysql/ && cd /root/cer...
You can use function help() or ? to access documentations and search for help in R. For even more general searches, you can use help.search() or ??. #For help on the help function of R help() #For help on the paste function help(paste) #OR help("paste") #OR ?paste #OR ...
A fully featured OS designed around penetration testing. Download Link: https://www.offensive-security.com/kali-linux-arm-images/ Requirements: 8GB Class 10 SD Card Minimum 16GB Class 10 SD Card Recommended Default Login: Username: root Password: toor Notes Install gparted and expa...
SELECT DISTINCT object_name(i.object_id) AS [Object Name], c.name AS [Partition Column], s.name AS [Partition Scheme], pf.name AS [Partition Function], prv.tot AS [Partition Count], prv.miVal AS [Min Boundry Value], prv.maVal AS [Max Boundry Value] FROM sys.object...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html"> <title>JSP Comments</title> </head> <body> <%-- JSP comments --%> -- Ignored by container, you can't see this comment in source code...
Suppose we have the following JSON data: { "TESTS": [ { "YEAR": "2017", "MONTH": "June", "DATE": "28" } ] } import groovy.json...
This section is only relevant if you work with the Sass version of Materialize. First, you need to install Sass in your working directory: gem install sass When you have Sass installed on your project and you want to update your output .css file, you need to use the following command: sass sas...
The autocomplete UI control is a search dialog with built-in autocomplete functionality. As a user enters search terms, the control presents a list of predicted places to choose from. When the user makes a selection, a GMSPlace (Place in Xamarin) instance is returned, which your app can then use to ...

Page 726 of 861