Tutorial by Examples: a

For the layout above your customrow.axml file is as shown below <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_heigh...
Usually to use the converter, we have to define it as resource in the following way: <converters:SomeConverter x:Key="SomeConverter"/> It is possible to skip this step by defining a converter as MarkupExtension and implementing the method ProvideValue. The following example conve...
It is possible to pass multiple bound values as a CommandParameter using MultiBinding with a very simple IMultiValueConverter: namespace MyProject.Converters { public class Converter_MultipleCommandParameters : MarkupExtension, IMultiValueConverter { public object Convert(object...
After All the setup, To make Hello World App To create Simple Blank App, run below command on terminal : ionic start HelloWorld blank // create new project cd HelloWorld // get into HelloWorld directory open the HelloWorld Project in subline/webstrome IDE : Edit ind...
<img src="{{ asset('static/images/logo-default.png') }}" alt="Logo"/> <!--Generates path for the file "/web/static/images/logo-default.png" -->
<img src="{{ app.request.getSchemeAndHttpHost() ~ asset('static/images/logo-default.png') }}" alt="Logo"/> <!--Generates path for the file "/web/static/images/logo-default.png" -->
In ExtJS, you can override nearly any method of the framework and replace it with your own. This allows you to modify existing classes without directly modifying the ExtJS source code. Sometimes, you may want to enhance an existing class or provide a sane default property on a class. For example, ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">...
ECMA 6: const user = new User({ name: 'Stack', password: 'Overflow', }) ; user.save((err) => { if (err) throw err; console.log('User saved!'); }); ECMA5.1: var user = new User({ name: 'Stack', password: 'Overflow', }) ; user.save(function (err) { ...
ECMA6: User.findOne({ name: 'stack' }, (err, user) => { if (err) throw err; if (!user) { console.log('No user was found'); } else { console.log('User was found'); } }); ECMA5.1: User.findOne({ name: 'stack' }, function (err, user) { i...
On error move to labelled code and see if there is a specific error that needs to be handled. Public Const cErrCodeNotNumber = 2262 ' This value must be a number. Public Const cErrCodeNumericOverflow = 2263 ' The number is too large. Private Sub MySub() Dim objConn As ADODB.Connection ...
There are three modes of XAML bindings exists for either Binding and x:Bind: OneTime: Update happens only once, on initialization of the view during InitializeComponent() call. (ViewModel[sends data when initializing] -> View) OneWay: View is updated when ViewModel changes. But not in the rev...
While in the sources tab use CTRL+O (⌘+O for Mac) to search by filename.
Use CTRL+SHIFT+O (⌘+SHIFT+O for mac) to navigate to a javaScript function/CSS rule when viewing a file.
List of commands that will be introduced here: ls #view contents of a directory touch #create new file mkdir #create new directory cp #copy contents of one file to another mv #move file from one location to another rm #delete a file or directory ls examples jennifer@my_co...
michael@who-cares:~$ The symbol ~ after the who-cares: is the current directory. ~ actually means the person's home directory. In this case, that's /home/michael. michael@who-cares:~$ cd Downloads michael@who-cares:~/Downloads$ Looks for Downloads in the current directory, then makes that th...
Elixir is available in main packages repository. Update the packages list before installing any package: emerge --sync This is one step installation: emerge --ask dev-lang/elixir
Install jekyll on Linux Mint 18 with the following steps: sudo apt install ruby sudo apt install build-essential sudo apt install ruby-dev sudo gem install jekyll
Open a command prompt with Administrator access Install Chocolatey: @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin Close the comm...
Authentication filters Are a new kind of filter added in ASP.NET MVC 5.0 .That run prior to authorization filters in the ASP.NET MVC pipeline and allow you to specify authentication logic per-action, per-controller, or globally for all controllers. Authentication filters process credentials in th...

Page 717 of 1099