What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-30 02:30:02
what are the challenges in api
Some of the challenges we face while doing API testing are as follows • Selecting proper parameters and its combinations • Categorizing the parameters properly • Proper call sequencing is required as this may lead to inadequate coverage in... Add solution -
Other 2021-08-30 02:27:02
android add search to action bar
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { val menulayout = inflater.inflate(R.menu.yourmenu,menu) val searchManager = requireContext().getSystemService(Context.SEARCH_SERVICE) as SearchManager val se... Add solution -
Other 2021-08-29 23:29:02
accept and content type
Content-Type header is used in POST , PUT , PATCH to specify the type of body you are sending to the serve and it's required. `Accept Header` can be used to ask the server to return different type of response format For example : `/api/xname` endpo... Add solution -
Shell/Bash 2021-08-29 22:14:03
bash only print duplicated lines
# Basic syntax: sort input_file | uniq -d # Sort the file first because uniq requires a sorted file to work # Note, uniq -d only prints one instance of lines that have duplicates # Use, uniq -c to count the number of duplicates in the file Add solution -
Shell/Bash 2021-08-29 19:59:02
apache basic auth setup
#install apache utilis sudo apt-get install apache2 apache2-utils #add apache user sudo htpasswd -c /etc/apache2/.htpasswd some_username_here #Setup Directory permissions in Apache Config <Directory "/var/www/html"> AuthType Basic AuthN... Add solution -
Javascript 2021-08-29 19:29:01
nodejs mocha mock
const chai = require("chai"); const expect = chai.expect; const sinon = require("sinon"); const indexPage = require("../../controllers/app.controller.js"); describe("AppController", function() { describe("g... Add solution