Scala packages should follow the Java package naming conventions.
Package names are written in all lower case to avoid conflict with the names of classes or interfaces.
Companies use their reversed Internet domain name to begin their package names—for example,
io.super.math
Reading the specification for the document formats in OpenXML can be a time consuming process. Sometimes you just want to see how to produce a certain feature in a word-document.
The Open XML SDK 2.5 Productivity Tool for Microsoft Office (OpenXmlSdkTool.exe) does just that. Its main features are:
...
To add additional restriction to the poReceiptLinesSelection data view, you should invoke Select method on base view and inspect each item in returned PXResultSet independently to decide if it complies with additional restriction(s):
public class APInvoiceEntryExt : PXGraphExtension<APInvoiceEn...
To receive messages, use a service that extends FirebaseMessagingService and override the onMessageReceived method.
public class MyFcmListenerService extends FirebaseMessagingService {
/**
* Called when message is received.
*
* @param remoteMessage Object representing t...
Use Enum.chunk/2 to group elements into sub-lists, and Map.new/2 to convert it into a Map:
[1, 2, 3, 4, 5, 6]
|> Enum.chunk(2)
|> Map.new(fn [k, v] -> {k, v} end)
Would give:
%{1 => 2, 3 => 4, 5 => 6}
Vec (Vector) is a template class for numerical values. Unlike c++ vectors, it generally stores short vectors (only a few elements).
The way a Vec is defined is as follows:
typedef Vec<type, channels> Vec< channels>< one char for the type>;
where type is one of uchar, short, i...
Activate Developer Mode:
Login to odoo application.
After login user may see several odoo menu's. Click on setting menu.
Click on 'Activate the developer mode' which is located at right-bottom corner of settings page.
Developer mode now activated.
The CPU governor itself is just 1 C file, which is located in kernel_source/drivers/cpufreq/, for example: cpufreq_smartass2.c. You are responsible yourself for find the governor (look in an existing kernel repo for your device)
But in order to successfully call and compile this file into your ke...
Swift 3
Serial Queue
func serialQueues () {
let serialQueue = DispatchQueue(label: "com.example.serial") //default queue type is a serial queue
let start = Date ()
for i in 0...3 { //launch a bunch of tasks
serialQueue.a...
If you need to select between several options,
enabling just one via enable_if<> can be quite cumbersome,
since several conditions needs to be negated too.
The ordering between overloads can instead be selected using
inheritance, i.e. tag dispatch.
Instead of testing for the thing that ne...
This is the typical approach for novice developers building SQL action queries. They are vulnerable to the Bobby Tables type SQL Injection attacks.
Dim strSQL As String
strSQL = "INSERT INTO Employees chrFirstName, chrLastName, chrPhone " _
& "VALUES ('" & M...
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"...