Tutorial by Examples: o

To simulate paging using REST you can do the following: Use the $skip=n parameter to skip the first n entries according to the $orderby parameter Use the $top=n parameter to return the top n entries according to the $orderby and $skip parameters. var endpointUrl = "/_api/lists('g...
Very often it happens to deal with models which have something like a published field. Such kind of fields are almost always used when retrieving objects, so that you will find yourself to write something like: my_news = News.objects.filter(published=True) too many times. You can use custom mana...
<ul class="nav nav-pills"> <li role="presentation" class="active"><a href="#">Home</a></li> <li role="presentation"><a href="#">Profile</a></li> <li role="presentation&q...
<ul class="nav nav-tabs nav-justified"> <li role="presentation" class="active"><a href="#">Home</a></li> <li role="presentation"><a href="#">Profile</a></li> <li role="p...
max-width is the breakpoint @media (max-width: 1200px) { .navbar-header { float: none; } .navbar-left,.navbar-right { float: none !important; } .navbar-toggle { display: block; } .navbar-collapse { border-top: 1px solid transpar...
jQuery('body').bind('click', function(e) { if(jQuery(e.target).closest('#navbar').length == 0) { // click happened outside of .navbar, so hide var opened = jQuery('.navbar-collapse').hasClass('collapse in'); if ( opened === true ) { jQuery('#navbar2 .navb...
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...
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

Page 675 of 1038