Tutorial by Examples: st

XML Data can be written as is in XQuery and will be found in the output. The following code can be considered valid XQuery : <application> <id>MyApp</id> <name>My Application</name> <version>1.0</version> </application> Note that your XQ...
Resolving scoped services during application startup can be difficult, because there is no request and hence no scoped service. Resolving a scoped service during application startup via app.ApplicationServices.GetService<AppDbContext>() can cause issues, because it will be created in the sc...
Visual Studio 2013 can be downloaded here The setup is pretty easy.Select features you need and select the disk to install VS13 on.Click install and wait for it to finish.
Stream iterators are useful when we need to read a sequence or print formatted data from a container: // Data stream. Any number of various whitespace characters will be OK. std::istringstream istr("1\t 2 3 4"); std::vector<int> v; // Constructing stream iterators and copyi...
A defer statement consists of a block of code, which will be executed when a function returns and should be used for cleanup. As Swift's guard statements encourage a style of early return, many possible paths for a return may exist. A defer statement provides cleanup code, which then does not need ...
When using a defer-statement, make sure the code remains readable and the execution order remains clear. For example, the following use of the defer-statement makes the execution order and the function of the code hard to comprehend. postfix func ++ (inout value: Int) -> Int { defer { value...
Scale the image using START. Scale the image using END. Official Docs FitStart This will fit to the smallest size of the container, and it will align it to the start. <ImageView android:layout_width="200dp" android:layout_height="200dp" android:src...
Make sure to have some packages installed: sudo apt-get install libpq-dev pip install psycopg2 Database settings for PostgreSQL: #myapp/settings/settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'myprojectDB', 'USER': '...
Dependencies To install electron you must first install Node.js, which comes with npm. How to install it? Use npm: # Install the `electron` command globally in your $PATH npm install electron -g # OR # Install as a development dependency npm install electron --save-dev
FFmpeg can be installed on a mixture of Operating Systems, including Unix and OS X. Using a command line extension, this utility can also be installed on Windows using a dll. OS X To install this utility on OS X, just head over to ffmpeg.org, download the release relative to your Macs architec...
Jersey is one of the many frameworks available to create Rest Services, This example will show you how to create Rest Services using Jersey and Spring Boot 1.Project Setup You can create a new project using STS or by using the Spring Initializr page. While creating a project, include the followi...
public static void post(String url, byte [] data, String contentType) throws IOException { HttpURLConnection connection = null; OutputStream out = null; InputStream in = null; try { connection = (HttpURLConnection) new URL(url).openConnection(); connection.set...
APT and APT-GET Easiest and fastest way is with apt-get command. This command may be considered as lower-level and "back-end", and support other APT-based tools. There are no fancy loaders, only basic progress info. This is fastest way for installing apps. Usage: sudo apt-get install ...
While you can use the NSUserDefaults methods anywhere, it can sometimes be better to define a manager that saves and reads from NSUserDefaults for you and then use that manager for reading or writing your data. Suppose that we want to save a user’s score into NSUserDefaults. We can create a class ...
Sitecore Instance Manager is open-source tool which is used for managing the local park of Sitecore instances. You can install, locate, maintain, reinstal or delete Sitecore products. It also helps you install your sitecore instance with any sitecore packages, modules and only thing you need to do i...
CREATE TABLE new_table_name LIKE existing_table_name;
What you need is to get an entitlements file so the app can access your iCloud and write records using CloudKit. Follow the steps to grant access to iCloud from your app: 1- Select the project in the Project Navigator, and then open the General tab. 2- In the Identity section, set your developer ...
If static_cast is used to convert a pointer (resp. reference) to base class to a pointer (resp. reference) to derived class, but the operand does not point (resp. refer) to an object of the derived class type, the behavior is undefined. See Base to derived conversion.
If you look for the help section of | or bar : :h bar you can see: bar | To screen column [count] in the current line. exclusive motion. Ceci n'est pas une pipe. This is a reference to the painti...
This code requires that you use the PDFlib library for it to function properly. <?php $pdf = pdf_new(); //initialize new object pdf_begin_document($pdf); //create new blank PDF pdf_set_info($pdf, "Author", "John Doe"); //Set info about your PDF pdf_set_info($pd...

Page 184 of 369