Tutorial by Examples

If you have set a long passphrase and do not wish to keep entering it every time you want to connect to the server, you can use SSH-Agent to store your passphrase while you are logged in on your computer. Start the ssh-agent in the background: eval "$(ssh-agent -s)" # Agent pid 59566 ...
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...
Basics The generated projects contain a basic Hello World-like application already implemented. The main project is the core project, that contains all platform-independent code. This is mandatory, but based on your generation settings you can have several more projects for every platform that you...
<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">...
Make sure to have mongodb running first! mongod --dbpath data/ package.json "dependencies": { "mongoose": "^4.5.5", } server.js (ECMA 6) import mongoose from 'mongoose'; mongoose.connect('mongodb://localhost:27017/stackoverflow-example'); const db = mon...
Define your model(s): app/models/user.js (ECMA 6) import mongoose from 'mongoose'; const userSchema = new mongoose.Schema({ name: String, password: String }); const User = mongoose.model('User', userSchema); export default User; app/model/user.js (ECMA 5.1) var mongoose = r...
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...
When calling methods directly from the view. If performance matters really bad (scientific spaceship stuff) When you want to get compile time errors
Use it if you want to be flexible about the source type of your data. It won't bind to an actual property but to its name. If you want to bind to the DataContext
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.

Page 879 of 1336