Tutorial by Examples: ect

Methods used: .GetFolder(strPath) - Returns an object referring to the path We can set an object reference to a folder using the getFolder method and perform different operations on them. Code: Dim strFolderPath, objFso, objFolder strFolderPath = "C:\Users\GS\Desktop\LogsFolder" Se...
Methods Used: .GetFile(strPath) - Returns an object referring to a file. We can set an object reference to a file using the getFile method and perform different operations on them. Code: Dim strFilePath, objFso, objFile strFilePath = "C:\Users\GS\Desktop\LogsFolder\file.txt" Set ob...
Redis-py provides the execute_command method to directly invoke Redis operations. This functionality can be used to access any modules that may not have a supported interface in the redis-py client. For example, you can use the execute_command to list all of the modules loaded into a Redis server:...
The schema is an object that defines and describes the property or properties of the component. The schema’s keys are the names of the property, and the schema’s values define the types and values of the property (in case of a multi-property component): Defining schema in your component AFRAME.reg...
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <p> <input id="cbGroup1" type="checkbox">Select all <input name="cbGroup1" type="checkbox" value="value1_1">Group1 v...
Directional lights are like a light source that is infinitely far away, but shining from a specific direction, like the sun. Thus, absolute position do not have an effect on the intensity of the light on an entity. We can specify the direction using the position component. The example below creates...
If for some reason using the Symfony Installer is not an option, you can also create a new project using Composer. First of all, make sure you have installed Composer. Next, you can use the create-project command to create a new project: composer create-project symfony/framework-standard-edition m...
If you need to access the Request object (for instance to read the query parameters, to read an HTTP header or to process an uploaded file), you can receive the request as a method argument by adding a type-hinted argument: use Symfony\Component\HttpFoundation\Request; public function indexActio...
PHP exposes a number of so-called global variables which contain information about the HTTP request, such as $_POST, $_GET, $_FILES, $_SESSION, etc. The Request class contains a static createFromGlobals() method in order to instantiate a request object based on these variables: use Symfony\Componen...
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', ...
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(&...
1- First all, install https://www.meteor.com/install 2- Create a project. (--bare is to create an empty project) meteor create --bare MyAwesomeProject 3- Create the minimal file structure (-p to create intermediate directories): cd MyAwesomeProject mkdir -p client server imports/api imports/ui/...
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...
This is an Example which print rectangle and fill color in the rectangle. https://i.stack.imgur.com/dlC5v.jpg Most methods of the Graphics class can be divided into two basic groups: Draw and fill methods, enabling you to render basic shapes, text, and images Attributes setting methods, whic...
ExpandoObject (the System.Dynamic namespace) is a class that was added to the .Net Framework 4.0. This class allows us to dynamically add and remove properties onto an object at runtime. By using Expando object we can add our model classes into dynamically created Expando object. Following example e...
class Simple { } class Test { void printName(Object obj){ Class c = obj.getClass(); System.out.println(c.getName()); } public static void main(String args[]){ Simple s = new Simple(); Test t = new Test(); ...
Open the customization project that you want to publish with this method. Open the publish menu at the top and select the "Publish with Cleanup" option. *Please take note that all customization project that are selected on the customization screen will be republish even if you are ...
Thanks to encoders and decoders, the JSR 356 offers a object oriented communication models. Messages definition Let's assume all received messages have to be transformed by the server before being sent back to all connected sessions: public abstract class AbstractMsg { public abstract void t...

Page 95 of 99