Tutorial by Examples: l

As another example, we have the function map, which takes a function and a list of values, and applies the function to each value of the list: map :: (a -> b) -> [a] -> [b] Let's say we want to increment each value in a list. You may decide to define your own function, which adds one to...
DB backup Database backup is a must before starting any Dynamics CRM upgrade process. This is mandatory as to always have the option to rollback in case of any major roadblock. Wrong Estimation DO NOT underestimate the work involved in a CRM Upgrade process. Audit your current Microsoft Dynamics...
Now, here are some common pitfalls which might come along your way when upgrading your Dynamics CRM system. The organisation database selected for the import is a different version than the organisation database that is currently deployedCRM Organization Database To fix this issue, we need to in...
Go to File -> Project Structure -> Modules. Add new Hibernate module. Right click on the desired module -> Add -> Hibernate. Select the newly created Hibernate configuration option, and click the (+) sign in the right pane to create hibernate.cfg.xml file. Go to File -> Project ...
To use bokeh you need to launch a bokeh server and connect to it using a browser. We will use this example script (hello_world.py): from bokeh.models import ColumnDataSource from bokeh.plotting import figure from bokeh.io import curdoc def modify_doc(doc): """Add a plotted ...
Detailed instructions on getting tastypie set up or installed.
ScriptAnalyzer ships with sets of built-in preset rules that can be used to analyze scripts. These include: PSGallery, DSC and CodeFormatting. They can be executed as follows: PowerShell Gallery rules To execute the PowerShell Gallery rules use the following command: Invoke-ScriptAnalyzer -Path /...
To run the script analyzer against a single script file execute: Invoke-ScriptAnalyzer -Path myscript.ps1 This will analyze your script against every built-in rule. If your script is sufficiently large that could result in a lot of warnings and/or errors. To run the script analyzer against a w...
To see all the built-in rules execute: Get-ScriptAnalyzerRule
Following script enters predefined strings on hotkey presses if the scroll lock is active. This can be useful if you often paste a number of repeating strings. Included hotkey for script refresh (for example if you need to edit paste-able strings). ; refresh script hotkey Numpad9:: GetKeyS...
SET v_column_definition := CONCAT( v_column_name ,' ',v_column_type ,' ',v_column_options ); SET @stmt := CONCAT('ALTER TABLE ADD COLUMN ', v_column_definition); PREPARE stmt FROM @stmt; EXECUTE stmt; DEALLOCATE PREPARE stmt;
Object1 := nil; Object2 := nil; try Object1 := TMyObject.Create; Object2 := TMyObject.Create; finally Object1.Free; Object2.Free; end; If you do not initialize the objects with nil outside the try-finally block, if one of them fails to be created an AV will occur on the finally bl...
The place() manager organises widgets by placing them in a specific position in the parent widget. This geometry manager uses the options anchor, bordermode, height, width, relheight, relwidth,relx, rely, x and y. Anchor Indicates where the widget is anchored to. The options are compass directions...
Let's say you use Webpack for front end bundling. You can add webpack-dev-middleware to serve your statics through tiny and fast server. It allows you to automatically reload your assets when content has changed, serve statics in memory without continuously writing intermediate versions on disk. Pr...
To allow a bokeh application to be executed like a normal .py file, you need to handle the tornado IOloop in your application, as described here. A standalone bokeh application like this can be used to implement a console script entry point in setup.py. However, this requires bokeh version >= 0....
Hot Module Replacement allows to add, change or delete app module when application is running. Page reloading is not needed in this case. Prerequisites In addition to webpack-dev-middleware packages: npm install --save-dev webpack-hot-middleware Configuration Simply update configuration of UseW...
You can use aspnetcore-spa generator for Yeoman to create brand-new single page application with asp.net core. This allows you to choose one of the popular front end frameworks and generates project with webpack, dev server, hot module replacement and server-side rendering features. Just run npm ...
First, you'll need to install the Kotlin plugin. For Windows: Navigate to File → Settings → Plugins → Install JetBrains plugin For Mac: Navigate to Android Studio → Preferences → Plugins → Install JetBrains plugin And then search for and install Kotlin. You'll need to restart the IDE af...
You can create a New Project in Android Studio and then add Kotlin support to it or modify your existing project. To do it, you have to: Add dependency to a root gradle file - you have to add the dependency for kotlin-android plugin to a root build.gradle file. buildscript { repositorie...
Click to File → New → Kotlin Activity. Choose a type of the Activity. Select name and other parameter for the Activity. Finish. Final class could look like this: import android.support.v7.app.AppCompatActivity import android.os.Bundle class MainActivity : AppCompatActivity() { ...

Page 776 of 861