What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-10 05:20:18
android gridlayoutmanager
in res/values/dimens.xml: <integer name="grid_columns">1</integer> in res/values-w600dp/dimens.xml: <integer name="grid_columns">2</integer> in java: int gridColumns = getResources().getInteger(R.integer.gr... Add solution -
Other 2022-02-09 17:15:41
how do you use log4j
How do you use Log4J in your framework? Basically it is printing/logging the important events of the application/test run. in my project I did logging using the log4j library. I added the library dependency into pom.xml. For logging we create an object fr... Add solution -
Other 2022-02-07 19:45:03
how to logs
How do you use Log4J in your framework? printing/logging the important events of the application/test run. in my project I did logging using the log4j library. I added the library dependency into pom.xml. For logging we create an object from Logger Interf... Add solution -
TypeScript 2022-02-07 03:05:01
powershell scripts to attched apppool to existing site
$config = Get-Content Set-DefaultApplicationPoolConfig.xml $defaultAppPoolName = $config.WebApplications.defaultAppPoolName [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly... Add solution -
Javascript 2022-02-05 00:15:05
javascript progress of xml http request
<!DOCTYPE html> <html> <body> <p id="demo">result</p> <button type="button" onclick="get_post_ajax();">Change Content</button> <script type="text/javascript"> functio... Add solution -
Other 2022-02-02 20:31:30
parallel execution in testng
I achieve it with xml file. In TestNG is quite simple to do parallel testing. Let's say we have our test cases in different classes or packages. First I create TestNG xml runner. Then I create suites or test tags in the xml runner. In these tag, I point ... Add solution -
Python 2022-02-02 17:21:38
xml.etree create xml file
import xml.etree.cElementTree as ET root = ET.Element("root") doc = ET.SubElement(root, "doc") ET.SubElement(doc, "field1", name="blah").text = "some value1" ET.SubElement(doc, "field2", name=&... Add solution