Tutorial by Examples: c

To set up Node remote debugging, simply run the node process with the --debug flag. You can add a port on which the debugger should run using --debug=<port>. When your node process starts up you should see the message Debugger listening on port <port> Which will tell you that everyt...
Make sure that the NodeJS plugin is enabled Select your run configurations (screen) Select + > Node.js Remote Debug Make sure you enter the port selected above as well as the correct host Once those are configured simply run the debug target as you normally would and it will...
If you are using Sublime Text 3 then the simplest way to install Package Control is to select Install Package Control in the Tools menu or in the Command Palette and Sublime Text will install it automatically. Manually Installing: For Sublime Text 2, older versions of Sublime Text 3, or if you hav...
To track so called "virtual pageviews", use the ga('send') method right after your asynchronous request: Syntax: ga('send', 'pageview', 'path to your virtual page'); Example (Simple Link): <a href="http://example.com/my.pdf" onClick="ga('send', 'pageview', '/virtu...
Example of how ReplaceAll only applies a rule at most once, while ReplaceRepeated will do so in a loop but always restart application from the first rule. x + a /. { a_ + z :> (Print[0]; DoneA), a_ + x :> (Print[1]; y + z), a_ + y :> (Print[2]; DoneB)} (* Prints "1&quot...
In order to run Elasticsearch, a Java Runtime Environment (JRE) is required on the machine. Elasticsearch requires Java 7 or higher and recommends Oracle JDK version 1.8.0_73. So, be sure if you have Java in your system. If not, then follow the procedure: # Install wget with yum yum -y install w...
The best way to install and configure a Symfony2 project is described in the official documentation as follows: Mac OS X / Linux $ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony $ sudo chmod a+x /usr/local/bin/symfony Windows c:\> php -r "file_put_contents('sym...
When you have entered something into IEx which expects a completion, such as a multiline string, IEx will change the prompt to indicate that it is waiting for you finish by changing the prompt to have an ellipsis (...) rather than iex. If you find that IEx is waiting for you to finish an expression...
How to implement Firebase Real-Time database in Android applications. Setup/Installation: First, install the Firebase SDK (guide) Register your project using the Firebase console After successfuly completing the two steps above, add the following dependency in your application level ...
Assuming , you have a grasp of how to install gulp, let us dive right down to requiring all the gulp- dependencies from package.json under your projects root folder. In case you do not have a gulpfile yet , please create an empty file with the name gulpfile.js First , we require gulp. like so: v...
Our goal , is to Make your Images conform to widths and scale appropriately, by generating a battery of images of varied widths, and to minify them Lint your Javascript Minimize your assets - JS/CSS/HTML , thus enabling you to host a lighter than lightest code Watch the css/js/image files for ...
[Function <name>] (glob) { $.src(glob) .pipe([plugin 1]) .pipe([plugin 2]) . . . .pipe([plugin n]) .pipe( $.dest(<destination-name>) } Note pipe is a method that streams all the files matching the glob input , to our plugins( minifyhtml in this case) . It is simple ...
So, Before writing out optimiser functions , we need to install a couple of caching plugins. bash $ npm install --save-dev gulp-cached bash $ npm install --save-dev gulp-remember You might wonder why two caches eh!. gulp-cached , passes only modified or new content down the pipeline to other ...
NOTE This page illustrates use of gulp plugins like browser-sync , gulp-watch and run-sequence , and continues discussing gulp-workflow-automation from where we left off at Gulpjs-workflow-automation-1 of 2. In case you landed here , consider going through that post first. Default Task ...
This example scans for available access points and ad hoc networks. btnScan activates a scan initiated by the WifiManager.startScan() method. After the scan, WifiManager calls the SCAN_RESULTS_AVAILABLE_ACTION intent and the WifiScanReceiver class processes the scan result. The results are displaye...
Go to File -> Switch Workspace -> Other... and type in your new workspace name.
Disable Private Browsing Open your device’s Safari settings and ensure that Private Browsing is turned off. Remote debugging will not work if Private Browsing is enabled. Enable Web Inspector Tap the Advanced tab on your device’s Safari settings and ensure that Web Inspector is turned on....
private float minScale = 1f; private float maxScale = 4f; private void SetUpPinchGestureZoom() { imageViewToZoom.ContentMode = UIViewContentMode.ScaleAspectFit; scrollView.MaximumZoomScale = maxScale; scrollView.MinimumZoomScale = minScale; scrollView.ViewForZoomingInS...
<ul class="list-group"> <li class="list-group-item">Cras justo odio</li> <li class="list-group-item">Dapibus ac facilisis in</li> <li class="list-group-item">Morbi leo risus</li> <li class="list-gro...
<ul class="list-group"> <li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li> <li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li> <li class="list-group-item list-group-...

Page 540 of 826