Tutorial by Examples: c

Code in natively compiled function will be transformed into C code and compiled as dll. To create a Native Compiled scalar function you need to: Use standard CREATE FUNCTION syntax Set NATIVE_COMPILATION option in function definition Use SCHEMABINDING option in function definition Instead of...
Native compiled table value function returns table as result. Code in natively compiled function will be transformed into C code and compiled as dll. Only inline table valued functions are supported in version 2016. To create a native table value function you need to: Use standard CREATE FUNCTIO...
Once a while concecuent deploys to internal tomcat start giving constant error, without any clear cause (Listener start or ClassNotFoundException). When nothing seems to cure it, this procedure saves the world: 1 delete Servers folder 2 restart Eclipse 3 create new server, add project and start...
The container creates a singleton bean and injects collaborators into it only once. This is not the desired behavior when a singleton bean has a prototype-scoped collaborator, since the prototype-scoped bean should be injected every time it is being accessed via accessor. There are several solution...
Add a :cljsbuild node like the following to your project.clj file. :cljsbuild { :builds { ;;Different target goals should have different names. ;;We have the dev build here :dev { ;;The ClojureScript c...
The most common and flexible way to create a service uses the angular.module API factory: angular.module('myApp.services', []).factory('githubService', function() { var serviceInstance = {}; // Our first service return serviceInstance; }); The service factory function can be ...
Here we will be creating a Groovy pipeline in Jenkins 2 to do the following steps : Verify every 5 minutes if new code has been commited to our project Checkout code from SCM repo Maven compile of our Java code Run our integration tests and publish the results Here are the steps we will : ...
The easiest way to import CarouselView is to use the NuGet-Packages Manager in Xamarin / Visual studio: To use pre-release packages, make sure you enable the 'Show pre-release packages' checkbox at the left corner. Each sub-project (.iOS/.droid./.WinPhone) must import this package.
The basics In the heading of ContentPage, insert following line: xmlns:cv="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView" Between the <ContentPage.Content> tags place the CarouselView: <cv:CarouselView x:Name="DemoCarouselView"> </cv:Carous...
- name: Installing Oracle Java and support libs apt: pkg={{ item }} with_items: - python-software-properties - oracle-java8-installer - oracle-java8-set-default - libjna-java
Place a file like the following in your top level directory. It defines which components to render for which paths import React from 'react'; import { Route, IndexRoute } from 'react-router'; import New from './containers/new-post'; import Show from './containers/show'; import Index from './c...
# A line used mostly as the first one, imports App class # that is used to get a window and launch the application from kivy.app import App # Casual Kivy widgets that reside in kivy.uix from kivy.uix.label import Label from kivy.uix.button import Button from kivy.uix.boxlayout import BoxLayo...
Twitter Bootstrap supports icons called glyphicons and they can be used with all tags of HTML. All icons require a base class and individual icon class. Keep in mind that icon classes cannot be directly combined with other components, so always use inner <span></span> tag. If your HTM...
The Canny algorithm is a more recent edge detector designed as a signal processing problem. In OpenCV, it outputs a binary image marking the detected edges. Python: import cv2 import sys # Load the image file image = cv2.imread('image.png') # Check if image was loaded improperly and exit i...
import cv2 import numpy as np img = cv2.imread('<your_image>') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.imshow('image', img) cv2.imshow('gray', gray) cv2.waitKey(0) cv2.destroyAllWindows()
django-filter is generic system for filtering Django QuerySets based on user selections. The documentation uses it in a function-based view as a product model: from django.db import models class Product(models.Model): name = models.CharField(max_length=255) price = models.DecimalField(...
The following procedure is a generic one which will be used to log all errors in an application to a common error log table. CREATE OR REPLACE PROCEDURE log_errors ( p_calling_program IN VARCHAR2, p_error_code IN INTEGER, p_error_description IN VARCHAR2 ) IS PRAGMA AUTONOMOUS_TRANSAC...
Atomic types are the building blocks of lock-free data structures and other concurrent types. A memory ordering, representing the strength of the memory barrier, should be specified when accessing/modifying an atomic type. Rust provides 5 memory ordering primitives: Relaxed (the weakest), Acquire (f...
Put the following code in functions.php: function themify_custom_excerpt_length( $length ) { return 50; } add_filter( 'excerpt_length', 'themify_custom_excerpt_length', 999 ); Use 999 as the priority to ensure that the function runs after the default WordPress filter, otherwise it would ov...
To do this, put the following code in functions.php: function custom_excerpt_more($more) { return '<a href="'. get_permalink($post->ID) . '">Read More</a>'; } add_filter('excerpt_more', 'custom_excerpt_more'); The results should look like this:

Page 521 of 826