Tutorial by Examples

// 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....
Sweave from the utils package allows for formatting code, prose, graphs and tables together in a LaTeX document. Further Resources Knitr and RMarkdown
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 ...
SASS supports two types of comments: Inline comments - These only span one line and are usually used to describe a variable or block. The syntax is as follows: // Your comment here (you prepend it with a double slash (//) and the rest of the line is ignored by the parser. Multiline comment...
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...
Salt commands are executed using a common structure: salt '*' pkg.install vim [target] [module.function] [arguments] The target determines which systems apply the command. In the example above we target all ('*') the Salt minions. See the targeting minions documentation for more...
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 ...
There are multiple ways to switch to alert pop-up in Python: Deprecated: alert = driver.switch_to_alert() Using switch_to: alert = driver.switch_to.alert Using ExplicitWait: from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait ...
This converts valid json strings to MySQL JSON type: SELECT CAST('[1,2,3]' as JSON) ; SELECT CAST('{"opening":"Sicilian","variations":["pelikan","dragon","najdorf"]}' as JSON);
JSON_OBJECT creates JSON Objects: SELECT JSON_OBJECT('key1',col1 , 'key2',col2 , 'key3','col3') as myobj; JSON_ARRAY creates JSON Array as well: SELECT JSON_ARRAY(col1,col2,'col3') as myarray; Note: myobj.key3 and myarray[2] are "col3" as fixed string. Also mixed JSON data: S...
Create @myjson variable as JSON type (read more): SET @myjson = CAST('["A","B",{"id":1,"label":"C"}]' as JSON) ; SELECT some members! SELECT JSON_EXTRACT( @myjson , '$[1]' ) , JSON_EXTRACT( @myjson , '$[*].label') , JSON_EXTRACT( @...
Extract path by -> or ->> Operators, while ->> is UNQUOTED value: SELECT myjson_col->>'$[1]' , myjson_col->'$[1]' , myjson_col->>'$[*].label' , myjson_col->>'$[1].*' , myjson_col->>'$[2].*' FROM tablename ; -- visuall: B, "B...

Page 1135 of 1336