Tutorial by Examples: o

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...
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...
Complete the Installation and setup to connect your app to Firebase. This will create the project in Firebase. Add the dependency for Firebase Realtime Database to your module-level build.gradle file: compile 'com.google.firebase:firebase-database:9.2.1' Configure Firebase Databa...
ThesetValue() method overwrites data at the specified location, including any child nodes. You can use this method to: Pass types that correspond to the available JSON types as follows: String Long Double Boolean Map<String, Object> List Pass a custom Java object, if the cla...
@Configuration // @Lazy - For all Beans to load lazily public class AppConf { @Bean @Lazy public Demo demo() { return new Demo(); } }
@Component @Lazy public class Demo { .... .... } @Component public class B { @Autowired @Lazy // If this is not here, Demo will still get eagerly instantiated to satisfy this request. private Demo demo; ....... }

Page 655 of 1038