Tutorial by Examples

In the Spring Integration Reference Docuement, it says: The outbound Channel Adapter is the inverse of the inbound: its role is to handle a message and use it to execute a SQL query. The message payload and headers are available by default as input parameters to the query... Java code p...
Print a 16-bit unsigned number in decimal The interrupt service Int 21/AH=02h is used to print the digits. The standard conversion from number to numeral is performed with the div instruction, the dividend is initially the highest power of ten fitting 16 bits (104) and it is reduced to lower power...
1. Static data to be used in app. To save static data in plist follow these methods: a) Add a new file b) Click Property list in Resources c) Name the propertylist and a file will be created as(data.plist here) d) You can create a plist of Arrays and Dictionaries as: // Read plist from...
You have already created a plist. This plist will remain same in app. If you want to edit the data in this plist, add new data in plist or remove data from plist, you can't make changes in this file. For this purpose you will have to store your plist in Document Directory. You can edit your plist s...
For starting tvOS I assume must have knowledge of swift and iOS app. One can start reading article from apple reference document. There are 2 type of Tv app we can create one is traditional app, i.e created in xcode code would be similar as we do in iOS app. Here we take example of other type of t...
As you can see the layout of this gem is very catching and user friendly.
A green rect with a round hole in the middle showing the image background underneth. <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <mask id="myMask"> <rect x="0&quot...
A green rect with a complex mask applied to it showing the background image. <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <mask id="myMask0"> <circle cx="50" c...
a green rect (again...) with 4 holes created using 4 greyscale values resulting in 4 different opacities. <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <mask id="myMask"> &l...
A green rect with a hole in the middle, with soft edges. <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <radialGradient id="rg"> <stop offset="0" stop-color="...
Plain Vanilla Filtering To filter any view, override its get_queryset method to return a filtered query set class HREmployees(generics.ListAPIView): def get_queryset(self): return Employee.objects.filter(department="Human Resources") All the API functions will then use t...
Avoid this Anti-Pattern var myDeferred = $q.defer(); $http(config).then(function(res) { myDeferred.resolve(res); }, function(error) { myDeferred.reject(error); }); return myDeferred.promise; There is no need to manufacture a promise with $q.defer as the $http service alread...
This example is filtered text from an IRB session. => require 'erb' => input = <<-HEREDOC <ul> <% (0..10).each do |i| %> <%# This is a comment %> <li><%= i %> is <%= i.even? ? 'even' : 'odd' %>.</li> <% end %> </ul> H...
In order to achieve type safety sometimes we want to avoid the use of primitive types on our domain. For instance, imagine a Person with a name. Typically, we would encode the name as a String. However, it would not be hard to mix a String representing a Person's name with a String representing an e...
byte incoming; String inBuffer; void setup() { Serial.begin(9600); // or whatever baud rate you would like } void loop(){ // setup as non-blocking code if(Serial.available() > 0) { incoming = Serial.read(); if(incoming == '\n') { // newline, car...
This tutorial is inspired from classic vimtutor. You will get to learn some handy shortcuts to work with Sublime Text 3. By the end of this tutorial, you would be familiar with ST's most important and frequently used shortcuts and features. Installation Via Package Control: Install Package Cont...
In OCaml, there are different arithmetic operators for floats and integers. Additionally, these operators can only be used on 2 floats or 2 integers. Here are invalid expressions in OCaml 1.0 + 2.0 1 + 2.0 1 +. 2 1 +. 2.0 The correct expression for each of these respectively are 1. +. 2. fl...
This is just an extension on the sealed trait variant where a macro generates a set with all instances at compile time. This nicely omits the drawback that a developer can add a value to the enumeration but forget to add it to the allElements set. This variant especially becomes handy for large en...
When you logged into Odoo application you will find an option to see who is the current logged in person in the top right corner. This user information have a dropdown button. Click on the dropdown, then you will find a list. In that list select about Odoo.com option. Clicking on that will open a Ab...
Note: Loading Odoo onto an AWS EC2 Container requires an AWS account Loading Odoo onto an AWS EC2 Instance can be done with one-click, simply go here or search for "Odoo AWS" in Google. This may take some time, but once it's ready you'll need to do two things: Get your password Fin...

Page 1053 of 1336