qmake is a build automation tool, which is shipped with Qt framework. It does similar job to tools such as CMake or GNU Autotools, but it is designed to be used specifically with Qt. As such it is well integrated with Qt ecosystem, notably Qt Creator IDE.
If you start Qt Creator and select File -&g...
In VBA, Strings can be declared with a specific length; they are automatically padded or truncated to maintain that length as declared.
Public Sub TwoTypesOfStrings()
Dim FixedLengthString As String * 5 ' declares a string of 5 characters
Dim NormalString As String
Debug.Print Fi...
Since arrays are reference types, an array variable can be null. To declare a null array variable, you must declare it without a size:
Dim array() As Integer
Or
Dim array As Integer()
To check if an array is null, test to see if it Is Nothing:
Dim array() As Integer
If array Is Nothing Th...
Since arrays are reference types, it is possible to have multiple variables pointing to the same array object.
Dim array1() As Integer = {1, 2, 3}
Dim array2() As Integer = array1
array1(0) = 4
Console.WriteLine(String.Join(", ", array2)) ' Writes "4, 2, 3"
A form gives the user a way to change data in your application, in a structured way. To mutate a simple array of data, we create a form using a form builder:
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\NumberType;
use Symfony\Component\F...
In HBase, data are stored in tables with columns. Columns are regrouped in column families, which can be for example "personal" or "professional", each of these containing specific informations.
To create a table, you need to use the Admin Object, create it using :
Admin admin ...
In HBase, you can use 4 types of operations
Get : retrieves a row
Put : inserts one or more row(s)
Delete : delete a row
Scan : retrieves several rows
If you simply want to retrieve a row, given its row_key you can use the Get object:
Get get = new Get(Bytes.toBytes("my_row_key")...
console.dir(object) displays an interactive list of the properties of the specified JavaScript object. The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.
var myObject = {
"foo":{
"bar":"d...
VBA supports 2 calendars : Gregorian and Hijri
The Calendar property is used to modify or display the current calendar.
The 2 values for the Calendar are:
ValueConstantDescription0vbCalGregGregorian calendar (default)1vbCalHijriHijri calendar
Example
Sub CalendarExample()
'Cache the curren...
Suppose we want to read and stack a bunch of similarly-formatted files. The quick solution is:
rbindlist(lapply(list.files(patt="csv$"), fread), id=TRUE)
We might not be satisfied with this for a couple reasons:
It might run into errors when reading with fread or when stacking with ...
This is an simple example to create a mysql server with docker
1.- create docker-compose.yml:
Note: If you want to use same container for all your projects, you should create a PATH in your HOME_PATH. If you want to create it for every project you could create a docker directory in your project.
...
Alert is a simple popup that displays a set of buttons and gets an result depending on the button the user clicked:
Example
This lets the user decide, if (s)he really wants to close the primary stage:
@Override
public void start(Stage primaryStage) {
Scene scene = new Scene(new Group(), 100...
The unset command is used to remove one or more variables.
unset ?-nocomplain? ?--? ?name name name name?
Each name is a variable name specified in any of the ways acceptable to the set command.
If a name refers to an element of an array then that element is removed without affecting the rema...
//Create Connection
$conn = sqlsrv_connect($dbServer, $connectionInfo);
$query = "SELECT * FROM [table]";
$stmt = sqlsrv_query($conn, $query);
Note: the use of square brackets [] is to escape the word table as it is a reserved word. These work in the same way as backticks ` do in ...
Intro
An array is a container object that holds a number of values. In the following image you can see an array with size 10, the first element indexed 1 and the last element 10.
Autohotkey offers a few ways of defining and creating arrays.
Array := []
Array := Array()
Creating and initia...
if(A_TimeIdlePhysical > 60000) { ; 60,000 milliseconds
WinClose, ahk_class Chrome_WidgetWin_1
MsgBox, Google Chrome was closed due to user inactivity.
}
This check could be done periodically, e.g. using SetTimer.
You can use the following code for going back and forward.
if (!function_exists('mb_internal_encoding')) {
function mb_internal_encoding($encoding = NULL) {
return ($from_encoding === NULL) ? iconv_get_encoding() : iconv_set_encoding($encoding);
}
}
if (!function_exists('mb_c...