Tutorial by Examples

build.gradle repositories { maven { url 'http://4thline.org/m2' } } dependencies { // Cling compile 'org.fourthline.cling:cling-support:2.1.0' //Other dependencies required by Cling compile 'org.eclipse.jetty:jetty-server:8.1.18.v20150929' compile 'org.eclipse.jetty:jetty-servlet:8....
String myIp = getIpAddress(); int port = 55555; //creates a port mapping configuration with the external/internal port, an internal host IP, the protocol and an optional description PortMapping[] desiredMapping = new PortMapping[2]; desiredMapping[0] = new PortMapping(port,myIp, PortMapping.Pr...
Say, you have a dataset consisting of names and email addresses. Now in another dataset, you just have the email address and wish to find the appropriate first name that belongs to that email address. The MATCH function returns the appropriate row the email is at, and the INDEX function selects i...
As an alternative to using Html.ActionLink to generate links in a view, you can use Html.RouteLink To make use of this feature, you need to configure a route, for example: public static void RegisterRoutes(RouteCollection routes) { routes.MapRoute( "SearchResults", "{...
Usually the case when one wants to change a field type to another, for instance the original collection may have "numerical" or "date" fields saved as strings: { "name": "Alice", "salary": "57871", "dob": "198...
After you got the Location object from FusedAPI, you can easily acquire Address information from that object. private Address getCountryInfo(Location location) { Address address = null; Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault()); String errorMessage; Li...
If you do deployments, configure your applications on multiple servers and required to login to your servers and make some changes in infrastructure, applications, pre-requisits etc. then puppet can definitely help you. Except all this if you handle a big infrastructure and want a centralized manag...
Before you decide to work on puppet there are few things that you need to know. puppet work in both client-server architecture (widely used) as well single machine (specially for testing purpose) puppet master can only be configured on a linux machine (master machine/node), windows can b...
Puppet provide official documention for both open-source and enterprise versions. you can find it here
System Requirements However, the Puppet master service is fairly resource intensive, and should be installed on a robust dedicated server. At a minimum, your Puppet master server should have two processor cores and at least 1 GB of RAM. To comfortably serve at least 1,000 nodes, it should have ...
# This is an example of a .profile or .bash_profile for Linux and Mac systems export GOPATH=/home/user/go export PATH=$PATH:/usr/local/go/bin
Android Studio -> Preferences -> Gradle -> Tick Offline work and then restart your Android studio. Reference screenshot:
In order to put your view on top of every application, you have to assign your view to the corresponding window manager. For that you need the system alert permission, which can be requested by adding the following line to your manifest file: <uses-permission android:name="android.permissio...
This example demonstrates how to use Renderscript API to blur an image (using Bitmap). This example uses ScriptInstrinsicBlur provided by android Renderscript API (API >= 17). public class BlurProcessor { private RenderScript rs; private Allocation inAllocation; private Allo...
You can get easily get this information by barfing out the input in your handler function. For example, in Java: public String handleRequest(String input, Context context) { context.getLogger().log("Input: " + input); String output = "Input:" + System.getProperty(&qu...
// Mixin to generate hidden classes @mixin generate-hidden-classes { @each $bp in map-keys($grid-breakpoints) { .hidden-#{$bp} { @include media-breakpoint-only($bp) { display: none !important; } } } } // Call to the mixin @include generate-hidden-classes(...
Just add this function to your functions.php. It will remove the version from all enqueued js and css files. function remove_cssjs_ver( $src ) { if( strpos( $src, '?ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'remove_cssjs_ver', 9...
If you are attempting to get an Angular2 site running on your Windows work computer at XYZ MegaCorp the chances are that you are having problems getting through the company proxy. There are (at least) two package managers that need to get through the proxy: NPM Typings For NPM you need to ad...
You have a few options when it comes to logging in with Meteor. The most common method is using accounts for Meteor. Accounts-password If you want users to be able to create and register on your site, you can use accounts-password. Install the package using meteor add accounts-password. To creat...
Initial Creation and Download (CakePHP 3.x) The easiest way to create a new CakePHP project is via Composer (if you don't know about composer look here for more info) Install Composer If you need to install it and are on a windows machine follow this guide If you are on Linux/Unix/OSX follow thi...

Page 854 of 1336