Tutorial by Examples: bas

Given a ByteBuffer instance one can write primitive-type data to it using relative and absolute put. The striking difference is that putting data using the relative method keeps track of the index the data is inserted at for you, while the absolute method always requires giving an index to put the d...
Here is a simple shortcut that runs the command upper_case when you press ctrl+u. { "keys": ["ctrl+u"], "command": "upper_case" } I've set the content of my keybindings like this, but it doesn't work! It's normal! It's because it has to be ...
Drop/Delete your database If you are using SQLite for your database, just delete this file. If you are using MySQL/Postgres or any other database system, you will have to drop the database and then recreate a fresh database. You will now need to delete all the migrations file except "init.py...
1) IP based vhosts <VirtualHost 192.168.13.37> ServerName example.com DocumentRoot /var/www/domains/example.com/html ErrorLog /var/log/example.com/error.log CustomLog /var/log/example.com/access.log common </VirtualHost> <VirtualHost 192.168.47.11> ...
<# .SYNOPSIS Gets the content of an INI file. .DESCRIPTION Gets the content of an INI file and returns it as a hashtable. .INPUTS System.String .OUTPUTS System.Collections.Hashtable .PARAMETER FilePath Specifies the path to the input INI file. .EXAMPLE ...
<# .SYNOPSIS Reads a CSV file and filters it. .DESCRIPTION The ReadUsersCsv.ps1 script reads a CSV file and filters it on the 'UserName' column. .PARAMETER Path Specifies the path of the CSV input file. .INPUTS None. You cannot pipe objects to ReadUsersCsv.ps1. ...
The DROP DATABASE command removes a database catalog, regardless of its state (offline, read-only, suspect, etc.), from the current SQL Server instance. A database cannot be dropped if there are any database snapshots associated with it, as the database snapshots must be dropped first. A database ...
Basic identifiers consist of letters, underscores and digits and must start with a letter. They are not case sensitive. Reserved words of the language cannot be basic identifiers. Examples of valid VHDL basic identifiers: A_myId90 a_MYID90 abcDEf100_1 ABCdef100_1 The two first are equivalent ...
Latest Android Studio will create & integrate a Basic Widget to your Application in 2 steps. Right on your Application ==> New ==> Widget ==> App Widget . It will show a Screen like below & fill the fields Its Done. It will create & integrate a basic HelloWorld Widget(I...
This is a very basic progress bar that only uses what is needed at the bare minimum. It would be wise to read this whole example to the end. import sys import time from PyQt5.QtWidgets import (QApplication, QDialog, QProgressBar, QPushButton) TIME_LIMIT = 100 ...
To run WordPress on your computer you need to configurate a database first. Be sure that Apache and MySQL are running (see Installing XAMPP step 3) Start a web browser of your choice and enter "localhost" in the address. Choose your preferred language and select in the category "...
After you installed XAMPP and setup the MySQL database you can install WordPress. Download the latest version of WordPress. Unzip the file and insert the folder in the root directory of your webserver (if you used the suggested path during the setup of XAMPP it is "c:\xampp\htdocs"). ...
Simply add an attribute to the controller action [Route("product/{productId}/customer")] public IQueryable<Product> GetProductsByCustomer(int productId) { //action code goes here } this will be queried as /product/1/customer and productId=1 will be sent to the controll...
Let's see how we can organize the code, when the codebase is getting larger. 01. Functions fn main() { greet(); } fn greet() { println!("Hello, world!"); } 02. Modules - In the same file fn main() { greet::hello(); } mod greet { // By default, everything inside a...
This example shows how to obtain the ancestry of a component using the ClassType and ClassParent properties. It uses a button Button1: TButton and a list box ListBox1: TListBox on a form TForm1. When the user clicks the button, the name of the button’s class and the names of its parent classes are ...
This will be our example data frame: color name size 0 red rose big 1 blue violet small 2 red tulip small 3 blue harebell small Accessing a single column from a data frame, we can use a simple comparison == to compare every element in the column to the given...
This will be our example data frame: color size name rose red big violet blue small tulip red small harebell blue small We can create a mask based on the index values, just like on a column value. rose_mask = df.index == 'rose' df[rose_mask...
This example will demonstrate how to get started with Firebase in your web apps with JavaScript. We are going to add a text child in our Firebase Database and display it in realtime on our web app. Lets get started. Go to the Firebase Console - https://console.firebase.google.com and create a...
Many watchOS apps (like Activity) have several pages which you could simply scroll between them, which is a very good way to use Apple Watch. To create a page based navigation, Ctrl-Drag from one controller to another, and select "next page", as shown in the following picture:
Another way to parametrize your performance scripts is to use database data through JDBC. JDBC is an application programming interface that defines how a client can access a database. First of all, download the JDBC driver to your database (refer to the database vendor). For example, mysql driver c...

Page 59 of 65