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...
The QList class is a template class that provides lists. It stores items in a list that provides fast index-based access and index-based insertions and removals.
To insert items into the list, you can use operator<<(), insert(), append() or prepend(). For example:
operator<<()
QList&l...
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 ~...
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 ...
An HTTP request took longer than 30 seconds to complete. In the example below, a Rails app takes 37 seconds to render the page; the HTTP router returns a 503 prior to Rails completing its request cycle, but the Rails process continues and the completion message shows after the router message.
2010-...
This error is thrown when a process in your web dyno accepts a connection, but then closes the socket without writing anything to it.
2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=myapp.herokuapp.co...
The dyno did not send a full response and was terminated due to 55 seconds of inactivity. For example, the response indicated a Content-Length of 50 bytes which were not sent in time.
2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H15 desc="Idle connection" method=GET path="...
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...
class User extends Model
{
public function setPasswordAttribute($password)
{
$this->attributes['password'] = bcrypt($password);
}
...
}
Above code does "bcrypting" each time password property is set.
$user = $users->first();
$user->password ...