Tutorial by Examples

This subroutine is a quick example on how to allow a user to select multiple files and then do something with those file paths, such as get the file names and send it to the console via debug.print. Option Explicit Sub OpenMultipleFiles() Dim fd As FileDialog Dim fileChosen As Integer ...
In Spark (scala) we can get our data into a DataFrame in several different ways, each for different use cases. Create DataFrame From CSV The easiest way to load data into a DataFrame is to load it from CSV file. An example of this (taken from the official documentation) is: import org.apache.spar...
You can mount remote directory through ssh by using sshfs. Sshfs does not come as a default on Ubuntu, so you need to install it first by using sudo apt-get install sshfs. You can then mount the remote directory to your local machine like this sshfs [email protected]:/remotedir /localdir Not...
One way to move files between servers is by using the scp command. Secure copy command utilizes ssh to transfer data. The simples example for copying a file from local to remote server is scp /localdir/localfile [email protected]:/remotedir/remotefile Similarily, to copy file from a remote t...
Since both R and regex share the escape character ,"\", building correct patterns for grep, sub, gsub or any other function that accepts a pattern argument will often need pairing of backslashes. If you build a three item character vector in which one items has a linefeed, another a tab ch...
There are two ever-so-slightly different engines of regular expressions implemented in R. The default is called POSIX-consistent; all regex functions in R are also equipped with an option to turn on the latter type: perl = TRUE. Look-ahead/look-behind perl = TRUE enables look-ahead and look-behind...
(->) is a simple example of a profunctor: the left argument is the input to a function, and the right argument is the same as the reader functor instance. instance Profunctor (->) where lmap f g = g . f rmap f g = g . g
Example 1, Query: SELECT char_length('ABCDE') Result: 5 Example 2, Query: SELECT character_length('ABCDE') Result: 5
If file exists with same name then it will update the file with new version. For register bean Class in service-context.xml file <bean id="autoVersionByNameBehaviour" class="test.demoamp.AutoVersionByNameBehaviour" init-method="init"> <property name=&qu...
The method of SQL generation from BQL PXSelectGroupBy<> data views has been changed in Acumatica Framework 5.2. The sections below illustrate the differences using the example of PXSelectGroupBy<FinYear, Aggregate<GroupBy<FinYear.finPeriods>>>.Select(graph): Acumatica Frame...
Detailed instructions on getting mpandroidchart set up or installed.
$path = get_home_path(); Return value: string Full filesystem path to the root of the WordPress installation, even if it's installed in a subfolder. Example: /var/www/htdocs/example
You can use any IDE and OOP language to implement S.O.L.I.D Principles. In the sample code I have used C# as it is the most widely used language in .NET word and is closely resembles Java and C++.
Existing legends can be difficult to manage. For example, if your plot has two lines, but only one of them has a legend entry and that should stay this way, then adding a third line with a legend entry can be difficult. Example: figure hold on fplot(@sin) fplot(@cos) legend sin % Add only a le...
Why to use LSP Scenario: Suppose we have 3 databases (Mortgage Customers, Current Accounts Customers and Savings Account Customers) that provide customer data and we need customer details for given customer's last name. Now we may get more than 1 customer detail from those 3 databases against giv...
What is it? BuildTools.jar is a solution to building Bukkit, CraftBukkit, Spigot, and the Spigot-API. All of which is done on your computer! A few prerequisite programs are necessary, but the instructions below will guide you through everything you need to do. Prerequisites There are two applicat...
Windows Get spigot.jar using BuildTools or from here. Paste the following text into a text document. Save it as start.bat in the same directory as spigot.jar: You will need to rename your jar to spigot.jar, or modify the file in the bat file to point to the correct file. nb: Windows (by ...
#include <forward_list> #include <string> #include <iostream> template<typename T> std::ostream& operator<<(std::ostream& s, const std::forward_list<T>& v) { s.put('['); char comma[3] = {'\0', ' ', '\0'}; for (const auto& e : v...
Method nameDefinitionoperator=assigns values to the containerassignassigns values to the containerget_allocatorreturns the associated allocator------------Element accessfrontaccess the first element------------Iteratorsbefore_beginreturns an iterator to the element before beginningcbefore_beginretur...
Html.Partial returns a string on the other hand Html.RenderPartial returns void. Html.RenderPartial This method returns void and the result is directly written to the HTTP response stream. That means it uses the same TextWriter object used in the current webpage/template. For this reason, this me...

Page 1217 of 1336