Tutorial by Examples

Detailed instructions on getting casperjs set up or installed.
Detailed instructions on getting google-project-tango set up or installed.
var casper = require('casper').create(); casper.start('http://casperjs.org/'); casper.then(function() { this.echo('First Page: ' + this.getTitle()); }); casper.thenOpen('http://phantomjs.org', function() { this.echo('Second Page: ' + this.getTitle()); }); casper.run();
This is a small example of an autocomplete input. CSS .autocomplete { position: relative; } .autocomplete-list { position: absolute; z-index: 2; top: 25px; min-width: 150px; margin: 0; padding: 0; list-style: none; border: 1px solid #eee; border-radius: 4px; ...
In your JS File add this option to your datatable: buttons: [ 'excel', 'pdf', 'copy' ] It will look like: $('#yourTableID').DataTable({ buttons: [ 'excel', 'pdf', 'copy' ] }); Add the necessary css files for the datatable with the buttons: <link rel="stylesheet" type=&quo...
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 ...
class Simple { } class Test { void printName(Object obj){ Class c = obj.getClass(); System.out.println(c.getName()); } public static void main(String args[]){ Simple s = new Simple(); Test t = new Test(); ...
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...
Kotlin objects are actually just singletons. Its primary advantage is that you don't have to use SomeSingleton.INSTANCE to get the instance of the singleton. In java your singleton looks like this: public enum SharedRegistry { INSTANCE; public void register(String key, Object thing) {} ...
On the official website of DataTable is an example of how a server-side process with PHP and MySQL can look. This example is deprecated and can no longer be used with PHP 7 (the function "mysql_pconnect" and the associated functions are deprecated, see this post). So this function gives y...
SWITCH and COND offer a special form of conditional program flow. Unlike IF and CASE, they respresent different values based on an expression rather than executing statements. That's why they count as functional. COND Whenever multiple conditions have to be considered, COND can do the job. The syn...
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 ...
Deque deque = new LinkedList(); //Adding element at tail deque.add("Item1"); //Adding element at head deque.addFirst("Item2"); //Adding element at tail deque.addLast("Item3");
//Retrieves and removes the head of the queue represented by this deque Object headItem = deque.remove(); //Retrieves and removes the first element of this deque. Object firstItem = deque.removeFirst(); //Retrieves and removes the last element of this deque. Object lastItem = deque.removeLa...
//Retrieves, but does not remove, the head of the queue represented by this deque Object headItem = deque.element(); //Retrieves, but does not remove, the first element of this deque. Object firstItem = deque.getFirst(); //Retrieves, but does not remove, the last element of this deque. ...

Page 1272 of 1336