Tutorial by Examples: st

Detailed instructions on getting opencart set up or installed.
In C, there are two unary operators - '++' and '--' that are very common source of confusion. The operator ++ is called the increment operator and the operator -- is called the decrement operator. Both of them can be used used in either prefix form or postfix form. The syntax for prefix form for ++ ...
This function gets existing item form cache, and if the item don't exist in cache, it will fetch item based on the valueFetchFactory function. public static TValue GetExistingOrAdd<TValue>(string key, double minutesForExpiration, Func<TValue> valueFetchFactory) { ...
By Creating Custom Progress Dialog class, the dialog can be used to show in UI instance, without recreating the dialog. First Create a Custom Progress Dialog Class. CustomProgress.java public class CustomProgress { public static CustomProgress customProgress = null; private Dialog m...
All instances (objects) of an entity class can be loaded from the underlying database table as follows (akin to retrieving all rows from the table): Iterable<Foo> foos = fooRepository.findAll(); The findAll method is provided by the CrudRepository interface. It returns an Iterable instead ...
A particular instance of an entity class can be loaded as follows: Foo foo = fooRepository.findOne(id); The findOne method is provided by the CrudRepository interface. It expects an identifier that uniquely identifies an entity instance (for instance, a primary key in a database table). The Java...
All instances of an entity class with one of the class attributes matching a specified value can be retrieved as follows: public interface FooRepository extends CrudRepository<Foo, Long> { List<Foo> findAllByName(String name); } Invoking the findAllByName method results in the JP...
node_redis, as you may have guessed, is the Redis client for Node.js. You can install it via npm using the following command. npm install redis Once you have installed node_redis module you are good to go. Let’s create a simple file, app.js, and see how to connect with Redis from Node.js. app...
Now that you know how to connect with Redis from Node.js, let’s see how to store key-value pairs in Redis storage. Storing Strings All the Redis commands are exposed as different functions on the client object. To store a simple string use the following syntax: client.set('framework', 'Angula...
ICU(International Components for Unicode) can be installed as a library for the following languages: Java: ICU4J C/C++: ICU4C Python: pyICU Perl: Wrappers for ICU (PICU) C#: ICU-dotnet Erlang: icu4e Ruby: ffi-icu Haskell: text-icu Lua: ICU4Lua Here is a series of installion steps for a...
Here i am going to explain the ajax custom pagination in cakephp 3.2. This one is easier to use and understandable. Do this code inside any function and any controller you need. Make an ajax call for the pagination <script type="text/javascript"> $(document).ready(function ()...
You can put your azure SQL Database in SQL elastic pool: CREATE DATABASE wwi ( SERVICE_OBJECTIVE = ELASTIC_POOL ( name = mypool1 ) ) You can create copy of an existing database and place it in some elastic pool: CREATE DATABASE wwi AS COPY OF myserver.WideWorldImporters ( SERVICE_OBJECTIV...
An instantiation error is thrown if an argument is not sufficiently instantiated. Critically, an instantiation error cannot be replaced by silent failure: Failing in such cases would mean that there is no solution, whereas an instantiation error means that an instance of the argument may participat...
Detailed instructions on getting raphael set up or installed.
Stereoscopy is a technique for creating or enhancing the illusion of depth in an image by stereopsis for binocular vision. Two individual displays are rendered and displayed individually to each of the user's eyes. The offset of an object is altered based on the intended depth displayed. This techn...
Range.CurrentRegion is a rectangular range area surrounded by empty cells. Blank cells with formulas such as ="" or ' are not considered blank (even by the ISBLANK Excel function). Dim rng As Range, lastCell As Range Set rng = Range("C3").CurrentRegion ' or Set rng = Shee...
#include <iostream> #include <map> #include <string> using namespace std; class A { public: map<string, string> * mapOfStrings; public: A() { mapOfStrings = new map<string, string>(); } void insertEntry(string const & key, st...
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...
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...
Install the NLog.Config package. (NuGet 3 users should install NLog and add the config manually.) Write to logger: using NLog; public class MyClass { private static Logger logger = LogManager.GetCurrentClassLogger(); public void MyMethod1() { logger.Trace("Sample trace mess...

Page 260 of 369