Tutorial by Examples: a

Frontend Interface /** * Entity attribute frontend interface * * Frontend is providing the user interface for the attribute * */ interface Mage_Eav_Model_Entity_Attribute_Frontend_Interface { } Source Interface /** * Entity attribute select source interface * * Source is providing ...
In this example we have a file called file.js. Let's assume that you have to parse an URL using JavaScript and NodeJS querystring module. To accomplish this all you have to do is to insert the following statement in your file: const querystring = require('querystring'); var ref = querystring.pa...
For Visual Studio [NuGet]: The easiest way of installing PhantomJS is by using a NuGet Package Manager. In your project, right click "References", and click on "Manage NuGet Packages" as shown: Then, type "PhantomJS" to the search bar, select it and install it as s...
This is literally the only thing you need to start using RxJava on Android. Include RxJava and RxAndroid in your gradle dependencies: // use the last version compile 'io.reactivex.rxjava2:rxjava:2.1.1' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' RxAndroid main addition to RxJava is a Sche...
var page = require('webpage').create(); page.open('http://www.google.com', function(status) { console.log("Status: " + status); var title = page.evaluate(function() { return document.title; }); console.log("Loaded page: " + title); phantom.exit(); });
Decision boundary when we classify using logistic regression- Decision boundary when we classify using SVM- As it can be observed, SVM tries to maintain a 'gap' on either side of the decision boundary. This proves helpful when we encounter new data. With new data- Logistic regression perform...
This example shows how to validate forms in Spring MVC using Bean Validation API using Java Annotations, without any xml. User will be proposed to input their registration data and validator will check it for validity. Add Dependencies First of all add the following dependencies in your project: ...
Observers are used for listening to livecycle callbacks of a certain model in Laravel. These listeners may listen to any of the following actions: creating created updating updated saving saved deleting deleted restoring restored Here is an example of an observer. UserObserver &l...
Assuming we have the following function: function foo(tab) return tab.a end -- Script execution errors out w/ a stacktrace when tab is not a table Let's improve it a bit function foo(tab) if type(tab) ~= "table" then error("Argument 1 is not a table!", 2) end ...
The standard library comes with a rich collection of lazy iterables (and libraries such as Iterators.jl provide even more). Lazy iterables can be composed to create more powerful iterables in constant time. The most important lazy iterables are take and drop, from which many other functions can be c...
Set this attribute in your manifest's or element to enable or disable multi-window display: android:resizeableActivity=["true" | "false"] If this attribute is set to true, the activity can be launched in split-screen and freeform modes. If the attribute is set to false, the...
While launching an application firstly main thread is executed. This Main thread handles all the UI concept of application. If we want to run long the task in which we don't need the UI then we use thread for running that task in background. Here is the example of Thread which describes blow: new ...
Format and Usage: echo %cd% %cd% is a system variable that contains the current directory path
Format: cd "<path>" Example: cd "C:\Program Files (x86)\Microsoft Office" cd is an abbreviation for chdir and the two commands behave in the exact same way. For the sake of consistency, cd will be used throughout this topic. To navigate to the directory one leve...
cd by itself will not allow a user to move between drives. To move to a different drive, the /d option must be specified. e.g. Moving from C:\Users\jdoe\Desktop to D:\Office Work cd /d "D:\Office Work"
Usage to list all folders and files in the current directory: dir A target directory can also be specified: dir C:\TargetPath When specifying a path with spaces, it must be surrounded by quotes: dir "C:\Path With Spaces"
The following should be added to your global .gitconfig file [merge] tool = kdiff3 [mergetool "kdiff3"] path = D:/Program Files (x86)/KDiff3/kdiff3.exe keepBackup = false keepbackup = false trustExitCode = false Remember to set the path property to point to th...
[diff] tool = kdiff3 guitool = kdiff3 [difftool "kdiff3"] path = D:/Program Files (x86)/KDiff3/kdiff3.exe cmd = \"D:/Program Files (x86)/KDiff3/kdiff3.exe\" \"$LOCAL\" \"$REMOTE\"
[merge] tool = intellij [mergetool "intellij"] cmd = cmd \"/C D:\\workspace\\tools\\symlink\\idea\\bin\\idea.bat merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REM...
[diff] tool = intellij guitool = intellij [difftool "intellij"] path = D:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.2/bin/idea.bat cmd = cmd \"/C D:\\workspace\\tools\\symlink\\idea\\bin\\idea.bat diff $(cd $(dirname "$LOCAL") && pwd)/$(ba...

Page 781 of 1099