Tutorial by Examples

This example will register an vuex module dynamically for storing custom notifications that can automatically dismissed notifications.js resolve vuex store and define some constants //Vuex store previously configured on other side import _store from 'path/to/store'; //Notification default dur...
While performing a git merge you may find that git reports a "merge conflict" error. It will report to you which files have conflicts, and you will need to resolve the conflicts. A git status at any point will help you see what still needs editing with a helpful message like On branch ma...
You can import an SVG file as a VectorDrawable in Android Studio, follow these steps : "Right-click" on the res folder and select new > Vector Asset. Select the Local File option and browse to your .svg file. Change the options to your liking and hit next. Done.
probably the most common misconception about asnycio is that it lets you run any task in parallel - sidestepping the GIL (global interpreter lock) and therefore execute blocking jobs in parallel (on separate threads). it does not! asyncio (and libraries that are built to collaborate with asyncio) b...
Temp tables must have unique IDs (within the session, for local temp tables, or within the server, for global temp tables). Trying to create a table using a name that already exists will return the following error: There is already an object named '#tempTable' in the database. If your query pro...
This example assumes that you have already added Fresco to your app (see this example): SimpleDraweeView img = new SimpleDraweeView(context); ImageRequest request = ImageRequestBuilder .newBuilderWithSource(Uri.parse("http://example.com/image.png")) .setProgressiveRende...
A command-line launcher is a handle tool which allows one to open WebStorm using the command-line. It can easily be created by using the menus Tools > Create Command-line Launcher... After selecting the option, you will be presented with the "Create Launcher Script" prompt for a l...
If you want to order by a column using something other than alphabetical/numeric ordering, you can use case to specify the order you want. order by Group returns: GroupCountNot Retired6Retired4Total10 order by case group when 'Total' then 1 when 'Retired' then 2 else 3 end returns: GroupCountTot...
Prerequiste steps: Get dotnet core for your platform: Dotnet Core Follow instructions and make sure dotnet core is working Get Visual Studio Code for your platform: VS Code Launch Visual Studio Code (VS code) and install the C# extension then reload Create self hosted NancyFx project: ...
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case. A switch statement is often more concise and understandable than if...else if... else.. statements when testing m...
The following statement if (conditionA && conditionB && conditionC) //... is exactly equivalent to bool conditions = conditionA && conditionB && conditionC; if (conditions) // ... in other words, the conditions inside the "if" statement just form an...
Below is the list of some mistakes that developers often make during the use of AngularJS functionalities, some learned lessons and solutions to them. 1. Manipulating DOM through the controller It's legal, but must be avoided. Controllers are the places where you define your dependencies, bind you...
Since PHP 7.0, some of the harmful effects of type juggling can be mitigated with strict typing. By including this declare statement as the first line of the file, PHP will enforce parameter type declarations and return type declarations by throwing a TypeError exception. declare(strict_types=1); ...
bcadd vs float+float var_dump('10' + '-9.99'); // float(0.0099999999999998) var_dump(10 + -9.99); // float(0.0099999999999998) var_dump(10.00 + -9.99); // float(0.0099999999999998) var_dump(bcadd('10', '-9.99', 20)); // string(22) "0.01000000000000000000&q...
Consider the following test: it('should test something', function() { browser.get('/dashboard/'); $("#myid").click(); expect(element(by.model('username')).getText()).toEqual('Test'); console.log("HERE"); }); In the following test, when the console.log() is ex...
Pre build controls to handle Grids, Inputs, Graphs, Trees, and so on. It supports an event model that preserves state over HTTP, which benefits line-of-business Web application development. The Web Forms-based application provides dozens of events that are supported in hundreds of server co...
It makes it easier to manage complexity by dividing an application into the model, the view, and the controller (Separation of concerns). It does not use view state or server-based forms. This makes the MVC framework ideal for developers who want full control over the behavior of an applica...
Web Forms: Complex Page Life Cycle, whenever a Request is made to the server there are at least 5 methods to execute previous to the event handler. Dificult to work with Client-Side frameworks like JQuery or Angular. Hard to work with Asyncronous Javascript and XML (AJAX) Viewstate handling T...
Razor (MVC)ASPX (Web Forms)The namespace used by the Razor View Engine is System.Web.RazorThe namespace used by the ASPX View Engine is System.Web.Mvc.WebFormViewEngineThe file extensions used by the Razor View Engine are different from a web form view engine. It uses cshtml with C# and vbhtml with ...
Now days many languages are supporting archive server to install their packages into your local machine. TCL also having same archive server we called it as Teacup teacup version teacup search <packageName> Example teacup install Expect

Page 1080 of 1336