The phpunit.xml file is the default configuration file for tests and is already setup for testing with PHPUnit.
The default testing environment APP_ENV is defined as testing with array being the cache driver CACHE_DRIVER. With this setup, no data (session/cache) will be retained while testing.
T...
Declaring the splat is useful for reusing sets of parameters multiple times or with slight variations:
$splat = @{
Class = "Win32_SystemEnclosure"
Property = "Manufacturer"
ErrorAction = "Stop"
}
Get-WmiObject -ComputerName $env:COMPUTERNAME @splat
Get...
CSS variables cascade in much the same way as other properties, and can be restated safely.
You can define variables multiple times and only the definition with the highest specificity will apply to the element selected.
Assuming this HTML:
<a class="button">Button Green</a>...
2xx Success
200 OK - Standard response for successful HTTP requests.
201 Created - The request has been fulfilled, resulting in the creation of a new resource.
204 No Content - The server successfully processed the request and is not returning any content.
3xx Redirection
304 Not Modified...
Below example shows how to change the hyperlink for "ID" and "Title(LinkTitle)" field inside the list view using CSR.
Step1 : Create a JS file and paste below code
(function () {
function registerRenderer() {
var ctxForm = {};
ctxForm.Templates = {}...
This example shows how to hide a "Date" field from the SharePoint list view using CSR.
(function () {
function RemoveFields(ctx) {
var fieldName = "Date"; // here Date is field or column name to be hide
var header = document.querySelectorAll("[d...
What is PS1
PS1 denotes Prompt String 1. It is the one of the prompt available in Linux/UNIX shell. When you open your terminal, it will display the content defined in PS1 variable in your bash prompt. In order to add branch name to bash prompt we have to edit the PS1 variable(set value of PS1 in ~...
A crashed web dyno or a boot timeout on the web dyno will present this error.
2010-10-06T21:51:04-07:00 heroku[web.1]: State changed from down to starting
2010-10-06T21:51:07-07:00 app[web.1]: Starting process with command: `bundle exec rails server -p 22020`
2010-10-06T21:51:09-07:00 app[web.1]:...
When HTTP requests arrive faster than your application can process them, they can form a large backlog on a number of routers. When the backlog on a particular router passes a threshold, the router determines that your application isn’t keeping up with its incoming request volume. You’ll see an H11 ...
The official website contain good exemple of apps:
https://www.opencpu.org/apps.html
The following code is used to serve a R session:
library(opencpu)
opencpu$start(port = 5936)
After this code is executed, you can use URLs to access the functions of the R session.
The result could be XML, h...
OS X
Download and run the OS X installer.
Windows
Download and run the Windows installer 32-bit 64-bit.
Debian/Ubuntu
Run the following to add our apt repository and install the CLI:
$ sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
$ curl -L https...
You will be asked to enter your Heroku credentials the first time you run a command; after the first time, your email address and an API token will be saved to ~/.netrc for future use.
It’s generally a good idea to login and add your public key immediately after installing the Heroku CLI so that yo...