Tutorial by Examples: st

In Qt you should use QLinkedList in case you need to implement linked list. It is fast to append, prepend, insert elements into QLinkedList - O(1), but index lookup is slower than in QList or QVector - O(n). This is normal taking into attention you have to iterate through nodes to find something in...
[Service] # empty exec prevents error "docker.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing." ExecStart= ExecStart=/usr/bin/dockerd -H fd:// --log-driver=syslog This enables syslog logging for the docker daemon. The file sho...
Nesting controllers chains the $scope as well. Changing a $scope variable in the nested controller changes the same $scope variable in the parent controller. .controller('parentController', function ($scope) { $scope.parentVariable = "I'm the parent"; }); .controller('childContro...
Arch: An official pacman-package is available. Install the package as root, using: pacman -S postgis OpenSuse: In order to use the openSuse repositories for geospatial applications, enable the Geo-repository as root: zypper ar http://download.opensuse.org/repositories/Application:/Geo/openSUS...
Detailed instructions on getting moodle set up or installed are in the official Moodle page in the section Installing Moodle For administrators who are experienced with installing web server applications and are in a hurry to get up and running visit Installation Quickstart Platform specific instr...
The navigation pane located at the left hand side of the admin panel is how you navigate to and access different administration functionalities in the OpenCart back end. Pane expander Current account name and role Dashboard Catalog Categories Products Recurring Profiles Filters Attrib...
Both connecting to a remove SSH server and accepting SSH connections require installation of openssh Debian: # apt-get install openssh Arch Linux: # pacman -S openssh Yum: # yum install openssh
Detailed instructions on getting ssas set up or installed.
Detailed instructions on getting visual-foxpro set up or installed.
Custom Post Type Archive: To create an archive template for a custom post type you have to set the has_archive argument equal to true in your register_post_type() function. In the example below a custom post type is created for an Event post type. add_action( 'init', 'create_events_post_type' );...
Akka Streams allows you to easily create a stream leveraging the power of the Akka framework without explicitly defining actor behaviors and messages. Every stream will have at least one Source (origin of the data) and at least one Sink (destination of the data). import akka.actor.ActorSystem impo...
In C, all arguments are passed to functions by value, including structs. For small structs, this is a good thing as it means there is no overhead from accessing the data through a pointer. However, it also makes it very easy to accidentally pass a huge struct resulting in poor performance, particula...
Detailed instructions on getting microcontroller set up or installed.
(defun sum-list-integers (list) (reduce '+ list)) ; 10 (sum-list-integers '(1 2 3 4)) ; 55 (sum-list-integers '(1 2 3 4 5 6 7 8 9 10))
Install Anaconda(PyQt5 is build-in), especially for windows user. Integrate QtDesigner and QtUIConvert in PyCharm(External Tools) Open PyCharm Settings > Tools > External Tools Create Tool(QtDesigner) - used to edit *.ui files Create Tool(PyUIConv) - used to convert *.ui to *.py ...
Carthage Setup Download the latest version of Carthage from the given link Download Link Down in the Download section download the Carthage.pkg file. Once the download is complete install it by double clinking on the download pkg file. To check for successful download run the following command i...
A palindrome is a word that can be read both ways, like 'kayak'. This example will show how to find if a given word is a palindrome using Python3. First, we need to turn a string into a stack (we will use arrays as stacks). str = "string" stk = [c for c in str] #this makes an array: [&...
To get the list of functions within package dplyr, we first must load the package: library(dplyr) ls("package:dplyr")
If you want to create a custom validation rule, you can do so for instance in the boot method of a service provider, via the Validator facade. <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Validator; class AppServiceProvider extends ServiceProvider { ...
Schema changes: You will need to define a new field type in your solr schema file and then you can create fields of that type. Example schema snippet: <!-- Source: solr/example/.../conf/schema.xml --> <?xml version="1.0" encoding="UTF-8" ?> <schema name="a...

Page 268 of 369