Tutorial by Examples

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...
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; NSURL *URL = [NSURL URLWithString:@"http://example.com/upload"]; NSURLRequest *r...
import AlamofireImage Alamofire.request("https://httpbin.org/image/png").responseImage { response in debugPrint(response) print(response.request) print(response.response) debugPrint(response.result) if let image = response.result.value { print(&quot...
NSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@"POST" URLString:@"http://example.com/upload" parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) { [formData appendPartWithFileURL:[NSURL ...
HTTPS server with http location: server { listen 443; root /var/www/ location / { ... } location /http { rewrite ^ http://$host$request_uri? permanent; } } HTTP server redirects to HTTPS except one location: server { root /var/www/ locat...
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...
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) SET(PROJ_NAME "myproject") PROJECT(${PROJ_NAME}) # Configuration types SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE) IF(DEFINED CMAKE_BUILD_TYPE AND CMAKE_VERSION VERSION_GREATER "2.8"...
Redirect without query params: RewriteRule ^route$ /new_route_without_query [L,R=301,QSD] Redirect with query params: RewriteCond %{QUERY_STRING} ^$ RewriteRule ^/?route$ %{REQUEST_URI}?query=param1&query2=param2 [NC,L,R=301]
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 ...
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...
This is most likely the result of scaling your web dynos down to 0 dynos. To fix it, scale your web dynos to 1 or more dynos: $ heroku ps:scale web=1 Use the heroku ps command to determine the state of your web dynos. 2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H14 desc="No web...
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="...
Check if browser supports vibrations if ('vibrate' in window.navigator) // browser has support for vibrations else // no support
Vibrate the device for 100ms: window.navigator.vibrate(100); or window.navigator.vibrate([100]);

Page 1074 of 1336