#= Regardless of architecture we're using just the following
!define REGSVR `$SYSDIR\regsvr32.exe` #= define where RegSrv32 is
!define DLL `$AppDirectory\App\MyLegalProgram\myLegit.dll` #= define the file to register
##=
#= Command line usage is the same for both variants of RegSrv32 as foll...
I am assuming that you have aware about the some syntax of Kotlin and how to use, just add RecyclerView in activity_main.xml file and set with adapter class.
class MainActivity : AppCompatActivity(){
lateinit var mRecyclerView : RecyclerView
val mAdapter : RecyclerAdapter = ...
By creating multiple properties files for the different environments or use cases, its sometimes hard to manually change the active.profile value to the right one. But there is a way to set the active.profile in the application.properties file while building the application by using maven-profiles.
...
ExpandoObject (the System.Dynamic namespace) is a class that was added to the .Net Framework 4.0. This class allows us to dynamically add and remove properties onto an object at runtime. By using Expando object we can add our model classes into dynamically created Expando object. Following example e...
Let y(x) = A * x^a, for example A=30 and a=3.5. Taking the natural logarithm (ln) of both sides yields (using the common rules for logarithms):
ln(y) = ln(A * x^a) = ln(A) + ln(x^a) = ln(A) + a * ln(x).
Thus, a plot with logarithmic axes for both x and y will be a linear curve. The slope of this c...
Nested prefabs are not avaible in Unity at the moment. You can drag one prefab to another, and apply that, but any changes on the child prefab will not be applied to nested one.
But there is a simple workaround - You have to add to parent prefab a simple script, that will instantiate a child one.
...
interface MyInterface {
fun funcOne() {
//optional body
print("Function with default implementation")
}
}
If the method in the interface has its own default implementation, we can use super keyword to access it.
super.funcOne()
Suppose that you need to define a dropdown menu for a particular Acumatica screen, such as the Reports menu on the following screenshot.
This can be achieved in three different ways:
By adding a toolbar with a menu item to the screen's ASPX
By declaring a special "folder" action to ...
object CommonUtils {
var anyname: String ="Hello"
fun dispMsg(message: String) {
println(message)
}
}
From any other class, just invoke the variable and functions in this way:
CommonUtils.anyname
CommonUtils.dispMsg("like static call")
How to install TestNG in eclipse
Open eclipse
Click on Help > Install New software
Click Add
Provide name & URL - http://beust.com/eclipse
Select TestNG
Click Next
Click Finish
It will take some time to install TestNG
Once installed then restart eclipse.
Lets c...
When you want the current date and time, you can do this with the Javascript function Date, but will return the following format which isn't always useful: Wed Jun 07 2017 13:26:15 GMT+0200 (Romance (zomertijd)).
Copy the following code into app/helpers/helpers.js, and simply call getCurrentDateAnd...
First, you need to open your SQLite database, which can be done as follows:
SQLiteDatabase myDataBase;
String mPath = dbhelper.DATABASE_PATH + dbhelper.DATABASE_NAME;
myDataBase = SQLiteDatabase.openDatabase(mPath, null, SQLiteDatabase.OPEN_READWRITE);
After opening the database, you can easi...
You must obviously select the project that you want to publish.
You must click on the small arrow right next to the "Publish" button.
You must click on the "Publish to Multiple Companies" option.
On the smart panel that will appear you must select the companies that yo...
Open the customization project that you want to publish with this method.
Open the publish menu at the top and select the "Publish with Cleanup" option.
*Please take note that all customization project that are selected on the customization screen will be republish even if you are ...