Tutorial by Examples: ect

A simple SELECT query in Linq static void Main(string[] args) { string[] cars = { "VW Golf", "Opel Astra", "Audi A4", "Ford Focus", "Seat Leon&q...
This solution is more involved, leveraging custom TypeScript decorators which inject match, history and/or location data into your React.Component class, which gets you full type safety without needing any type guards, as the previous example required. // Routed.ts - defines decorators import { Ro...
About this Project This is simple boilerplate project. This post will guide you to set up the environment for ReactJs + Webpack + Bable. Lets get Started we will need node package manager for fire up express server and manage dependencies throughout the project. if you are new to node package man...
Consider the array declared as real x(10) Then we have three aspects of interest: The whole array x; Array elements, like x(1); Array sections, like x(2:6). Whole arrays In most cases the whole array x refers to all of the elements of the array as a single entity. It may appear in exec...
Create new script section. I call that sa(Script Anonymuos) that meens for me generate JavaScript section with anonymuous function call inside. <script type="text/javascript"> $(function () { $END$ }); </script> If in your project still use old jQuery you c...
In general, there are two types of Bash scripts: System tools which operate from the current working directory Project tools which modify files relative to their own place in the files system For the second type of scripts, it is useful to change to the directory where the script is stored. T...
SELECT * returns all columns in the same order as they are defined in the table. When using SELECT *, the data returned by a query can change whenever the table definition changes. This increases the risk that different versions of your application or your database are incompatible with each other....
Using Select2 in a Bootstrap Modal/PopUp If you are using Bootstrap Modal then be sure that Model tabindex=-1 is removed. $('#targetId').select2({ width: '100%', dropdownParent: $("#myModal") })
SQL injection is an attack made on the database query. In PHP, we use mysql_real_escape_string() function to prevent this along with other techniques but CodeIgniter provides inbuilt functions and libraries to prevent this. We can prevent SQL Injection in CodeIgniter in the following three ways − ...
First step : PCL part public class RoundedBoxView : BoxView { public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create("CornerRadius", typeof(double), typeof(RoundedEntry), default(double)); public double CornerRadius { get...
A couple of other options allow stack traces to include implementation and/or reflection frames. This may be useful for debugging purposes. For instance, we can add the SHOW_REFLECT_FRAMES option to the StackWalker instance upon creation, so that the frames for the reflective methods are printed as ...
We can select a text within an html or xml tag by using visual selection v and text object it . Go to normal mode py pressing ESC Type vit from anywhere within the html or xml section This will visually select all text inside the tag All other text objects can also be used to operate on th...
Dim number As Integer = 8 Select Case number Case 1 To 5 Debug.WriteLine("Between 1 and 5, inclusive") ' The following is the only Case clause that evaluates to True. Case 6, 7, 8 Debug.WriteLine("Between 6 and 8, inclu...
#lang scribble/manual @section{Introduction} First paragraph. Some text, some text, some text, some text, some text, some text. @section{More stuff} @subsection{This is a subsection} Second paragraph. More text, more text, more text, more text, more text, more text.
We will start with creating a simple node application with a basic structure and then connecting with local sql server database and performing some queries on that database. Step 1: Create a directory/folder by the name of project which you intent to create. Initialize a node application using npm ...
SSIS tasks required. Data Flow Task: As the script component is only available in the data flow. Script Component: Inside this we will use variables and play with there values. Steps There are two methods to access variables inside of script component First Method - Using this.Variables ...
/** * Set a custom add to cart URL to redirect to * @return string */ function custom_add_to_cart_redirect() { return 'http://www.yourdomain.com/your-page/'; } add_filter( 'woocommerce_add_to_cart_redirect', 'custom_add_to_cart_redirect' );
Scope is used as the "glue" that we use to communicate between the parent controller, the directive, and the directive template. Whenever the AngularJS application is bootstrapped, a rootScope object is created. Each scope created by controllers, directives and services are prototypically ...
If you want to notify other clients/users throughout the application ,you not need to worry about the connection because signalr new connection is created every time you visit other pages in the web app. we can leverage the users feature of signalr to achieve the same. see the example below: Here...
ChainMap is new in version 3.3 Returns a new ChainMap object given a number of maps. This object groups multiple dicts or other mappings together to create a single, updateable view. ChainMaps are useful managing nested contexts and overlays. An example in the python world is found in the implemen...

Page 93 of 99