Tutorial by Examples: l

Go to ActiveMQ Website and download latest stable version of activeMQ click here to activeMQ downloads after downloading, unzip it if you're using windows 32 Go to apache-activemq-5.14.3\bin\win32 if windows 64 apache-activemq-5.14.3\bin\win64 run the activemq batch file thats it...
In the tsconfig.json set "sourceMap": true, to generate mappings alongside with js-files from the TypeScript sources using the tsc command. The launch.json file: { "version": "0.2.0", "configurations": [ { "type"...
Add ts-node to your TypeScript project: npm i ts-node Add a script to your package.json: "start:debug": "ts-node --inspect=5858 --debug-brk --ignore false index.ts" The launch.json needs to be configured to use the node2 type and start npm running the start:debug script: ...
Scala supports lazy evaluation for function arguments using notation: def func(arg: => String). Such function argument might take regular String object or a higher order function with String return type. In second case, function argument would be evaluated on value access. Please see the example...
create Dynamic web project in sts/eclipse download the eclipse paho jar from click here to download and paste jar file in webcontent->webinf->folder->lib Publish Example String broker = "tcp://localhost:1883"; String topicName = "test/topic"; int qos = 1; Mqt...
Even though colorblind people can recognize a wide range of colors, it might be hard to differentiate between certain colors. RColorBrewer provides colorblind-friendly palettes: library(RColorBrewer) display.brewer.all(colorblindFriendly = T) The Color Universal Design from the University ...
These instructions are for a base install of Community Edition for local development purposes. Mac (Official documentation is maintained here) 1. Install Dependencies: Homebrew brew install arangodb If you don't want Homebrew or otherwise prefer a binary, you can download it instead here. 2...
Behat/Mink Install using composer (for other methods check ) behat.org If you using linux, please go sure that you have installed php-curl (normal curl installation won't work) Linux sudo apt-get install php5-curl If you are using Windows, make sure you have PHP, Curl and Git installed. You...
Suppose you have a file that looks like this John Smith 31 Robert Jones 27 ... This file has 3 columns separated by spaces. To select only the first column, do the following. cut -d ' ' -f1 filename Here the -d flag, specifies the delimiter, or what separates the records. The -f flag speci...
Sometimes, it's useful to display a range of columns in a file. Suppose you have this file Apple California 2017 1.00 47 Mango Oregon 2015 2.30 33 To select the first 3 columns do cut -d ' ' -f1-3 filename This will display the following output Apple California 2017 Mango Oregon 2015 ...
Internally, Django uses the Python logging system. There is many way to configure the logging of a project. Here is a base: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'default': { 'format': "[%(asctime)s] %(levelname)s [%(n...
struct UnsafeMutablePointer<Pointee> A pointer for accessing and manipulating data of a specific type. You use instances of the UnsafeMutablePointer type to access data of a specific type in memory. The type of data that a pointer can access is the pointer's Pointee type. UnsafeMutable...
Deconstructing the use of an unsafe pointer in the Swift library method; public init?(validatingUTF8 cString: UnsafePointer<CChar>) Purpose: Creates a new string by copying and validating the null-terminated UTF-8 data referenced by the given pointer. This initializer does not try to rep...
public static void applyFontToMenu(Menu m, Context mContext){ for(int i=0;i<m.size();i++) { applyFontToMenuItem(m.getItem(i),mContext); } } public static void applyFontToMenuItem(MenuItem mi, Context mContext) { if(mi.hasSubMenu()) for(int i=0;i<mi.getSubMenu...
See Ellie for a working example. This example uses the NoRedInk/elm-decode-pipeline module. Given a list of JSON objects, which themselves contain lists of JSON objects: [ { "id": 0, "name": "Item 1", "transactions": [ { "id&quo...
Create a workspace mkdir -p ~/catkin_ws/src cd ~/catkin_ws/src catkin_init_workspace Build your workspace cd ~/catkin_ws/ catkin_make Source your setup file source devel/setup.bash Create a new package named hello_world with some basic dependencies catkin_create_pkg hello_world std_m...
Package Control GitHub Repo Open whichever package's README. Compatible with both ST2 and ST3
You can set the following flags in the constructor, or with setFlags(int flags) Paint.ANTI_ALIAS_FLAG Enable antialiasing, smooths the drawing. Paint.DITHER_FLAG Enable dithering. If color precision is higher than the device's, this will happen. Paint.EMBEDDED_BITMAP_TEXT_FLAG Enables the use o...
An Albers projection, or more properly, an Albers equal area conic projection, is a common conical projection and an official projeciton of a number of jurisdictions and organizations such as the US census bureau and the province of British Columbia in Canada. It preserves area at the expense of oth...
var foo = new uint8[12]; var bar = foo; assert (foo != bar); In this example, the both foo and bar possess a strong reference, but since uint8[] only support single ownership, a copy is made.

Page 735 of 861