Let's say we have some server that registers new users and greets them with some message. And we want to monitor this server and change some of it's parameters.
First, we need an interface with our monitoring and control methods
public interface UserCounterMBean {
long getSleepTime();
...
The Entity Framework library comes only with an SQL Server provider. To use SQLite will require additional dependencies and configuration. All required dependencies are available on NuGet.
Install SQLite Managed Libraries
All of the mananged depedencies can be installed using the NuGet Package Man...
public async int call_async () {
return 1;
}
call_async.begin ((obj, res) => {
var ret = call_async.end (res);
});
To call an asynchronous functions from a synchronous context, use the begin method and pass a callback to receive the result. The two arguments are:
obj is a GLi...
After going through the Basic Setup example, you may find yourself repeating most part of it in every single Scala Gradle project. Smells like boilerplate code...
What if, instead of applying the Scala plugin offered by Gradle, you could apply your own Scala plugin, which would be responsible for h...
NPM
If external library like jQuery is installed using NPM
npm install --save jquery
Add script path into your angular-cli.json
"scripts": [
"../node_modules/jquery/dist/jquery.js"
]
Assets Folder
You can also save the library file in your assets/js directory and in...
To use jquery in your Angular 2.x components, declare a global variable on the top
If using $ for jQuery
declare var $: any;
If using jQuery for jQuery
declare var jQuery: any
This will allow using $ or jQuery into your Angular 2.x component.
The following is an example of using an user-defined function to be called multiple(∞) times in a script with ease.
import turtle, time, random #tell python we need 3 different modules
turtle.speed(0) #set draw speed to the fastest
turtle.colormode(255) #special colormode
turtle.pensize(4) #siz...
Install cordova using the following command npm install -g cordova.
Use cordova -version to check the cordova version.
Set path variables ANDROID_HOME and JAVA_HOME.
Example:
export ANDROID_HOME = /home/geethu/android-sdk-linux
export PATH = $PATH:$ANDROID_HOME/tools:$ANDROID_H...
The Stock Items screen (IN.20.25.00) is one of the most often used data entry forms of Acumatica ERP to export data. Inventory ID is the only primary key on the Stock Items screen:
To export records from a data entry form, your SOAP request must always begin with the ServiceCommands.Every[Key] co...
Redis provides two functions for removing keys from the database: del and unlink.
The del function removes one or more keys from the database. The del command causes Redis to immediately reclaim the memory for the deleted key on the current thread of execution. The execution time for del is propo...
To create a new project ng new [project-name] which initializes git.Install packages for tooling via npm. It creates the project successfully.
cd [project-name] and execute either npm start or ng serve
It'll run the server in the given default port.
Application will refresh according to the chan...
Go to terminal,
cd projectFolder
git remote -v (it will show previous git url)
git remote set-url origin https://[email protected]/username/newName.git
git remote -v (double check, it will show new git url)
git push (do whatever you want.)
bindings: {
mandatory: '='
optional: '=?',
foo: '=?bar'
}
Optional attributes should be marked with question mark: =? or =?bar. It is protection for ($compile:nonassign) exception.