Tutorial by Examples: ed

Right-click on the Toolbox, then click "Choose Items". Select the COM Components tab, and then check Windows Media Player. axWindowsMediaPlayer will be added to Toolbox. Select this checkbox to use axWindowsMediaPlayer Then you can use axWindowsMediaPlayer :)
AxWindowsMediaPlayer1.URL = "C:\My Files\Movies\Avatar.mp4" AxWindowsMediaPlayer1.Ctlcontrols.play() This code will play Avatar in the axWindowsMediaPlayer.
Installation or Setup Slim framework Install Composer Open cmd Go to Root directory of your Project Folder and Run Following Command. composer require slim/slim "^3.0" Now you will have vendor directory in your project Next Create Index.php in root folder and add following co...
There are various types of inheritance and code reuse in Twig: Include The main goal is code reuse. Consider using header.html.twig & footer.html.twig inside base.html.twig as an example. header.html.twig <nav> <div>Homepage</div> <div>About</div> </...
Both are used to define error handling for a website, but different software refers to different config elements. customErrors are a legacy (backwards compatable) element, used by Visual Studio Development Server (aka. VSDS or Cassini). httpErrors are the new element which is only used by IIS7. T...
Suppose you want the user to select keywords from a menu, we can create a script similar to #!/usr/bin/env bash select os in "linux" "windows" "mac" do echo "${os}" break done Explanation: Here select keyword is used to loop through a list ...
Example of a TCA field configuration where you can select records from a table 'my_topfeatures' => array( 'label' => 'Select Topfeatures', 'config' => array( 'type' => 'group', 'internal_type' => 'db', 'size' => '4', ...
Create the Newsletter model: rails g model Newsletter name:string email:string subl app/models/newsletter.rb validates :name, presence: true validates :email, presence: true Create the Newsletter controller: rails g controller Newsletters create class NewslettersCont...
If a file is changed, but you don't like to commit it, set the file as "Assume unchanged" Revert "Assume unchanged" Need some steps:
If we want to remove some database connection from the list of database connections. we need to use QSqlDatabase::removeDatabase(),however it's a static function and the way it work is a little wired. // WRONG WAY QSqlDatabase db = QSqlDatabase::database("sales"); QSqlQuery query(&...
Here's an example with the technique(hack) invented by the dostips forums' user Liviu: @echo off echo Printed by CMD.EXE cscript //nologo "%~f0?.wsf" //job:JS //job:VBS exit /b %errorlevel% ----END OF BATCH CODE--- <package> <job id="JS"> <script...
A-Frame 0.x0.3 The tracked-controls component is A-Frame’s base controller component that provides the foundation for all of A-Frame’s controller components. The tracked-controls component: Grabs a Gamepad object from the Gamepad API given an ID or prefix. Applies pose (position and orien...
An Array Data Structure is used to store similar objects (or data values) in a contiguous block of memory. Array Data Structure has fixed size, which determines the number of data values that can be stored in it. Array : The C++ Way In C++ Programming Language, we can declare a static arr...
A nested loop is a loop within a loop. The outer loop changes only after the inner loop is completely finished / interrupted. In this case, test cases should be designed in such a way that Start at the innermost loop. Set all the outer loops to their minimum values. Perform Simple loop testing o...
Two loops are concatenated if it’s possible to reach one after exiting the other on same path from entrance to exit. Sometimes these two loops are independent to each other. In those cases we can apply the design techniques specified as part of single loop testing. But if the iteration values in on...
Step 1: Open a Document Step 2 Option A: Press Alt + F11 This is the standard shortcut to open the VBE. Step 2 Option B: Developer Tab --> View Code First, the Developer Tab must be added to the ribbon. Go to File -> Options -> Customize Ribbon, then check the box for developer. Th...
Associated objects are useful when you want to add functionality to existing classes which requires holding state. For example, adding a activity indicator to every UIView: Objective-C Implementation #import <objc/runtime.h> static char ActivityIndicatorKey; @implementation UIView (Ac...
When generating new Angular 2 components in a .NET Core project, you may run into the following errors (as of version 0.8.3): Error locating module for declaration SilentError: No module files found OR No app module found. Please add your new Class to your component. Identica...
Jenkins: The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. Sonar Qube: SonarQube provides the capability to not only show health of an application but also to highlight issues newly introduced. Apache Ant: A...
The function EventEmitter.eventNames() will return an array containing the names of the events currently subscribed to. const EventEmitter = require("events"); class MyEmitter extends EventEmitter{} var emitter = new MyEmitter(); emitter .on("message", function(){ //list...

Page 137 of 145