Tutorial by Examples: l

Ajax : New request : Client sends request : Server , Do you have new notification ? Server sends response : Client , NO connection ends New request : Client sends request : Server , Do you have new notification ? Server sends response : Client , NO connection ends New request ...
In the official reference document, it says: The main function of an inbound Channel Adapter is to execute a SQL SELECT query and turn the result set as a message. The message payload is the whole result set, expressed as a List, and the types of the items in the list depend on the row-mapping st...
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 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...
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...
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...
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...
Main motive to develop this compound view is, below 5.0 devices does not support svg in drawable inside TextView/EditText. One more pros is, we can set height and width of drawableRight inside EditText. I have separated it from my project and created in separate module. Module Name : custom_edit_d...
A simple example of an svg font. A few things to note here: the coordinate system of the glyphs is in opposition to the usual coordinate system in svg. the y axis points upwards. The point 0,0 is in the lower right corner. All paths in a font must be drawn counter clockwise. In most tools only ...
the units-per-em property is one of the most important font properties. It's used to give any value of any other property any meaning. the CSS2 font spec has a nice definition of the em sqare: Certain values, such as width metrics, are expressed in units that are relative to an abstract square w...
currentColor is most usefull in inline SVGs. With this you can inherit the parents css color and use it everywhere colors are used in SVG. In this example the first circle uses the text color as fill color, and the second circle uses it as the stroke color. <html> <head> ...
We will use retrofit 2 and SimpleXmlConverter to get xml data from url and parse to Java class. Add dependency to Gradle script: compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.retrofit2:converter-simplexml:2.1.0' Create interface Also create xml class wrapper in our cas...

Page 670 of 861