Tutorial by Examples: al

Detailed instructions on getting filemaker set up or installed.
Utilizing .Net System.Security.Cryptography.HashAlgorithm namespace to generate the message hash code with the algorithms supported. $example="Nobody expects the Spanish Inquisition." #calculate $hash=[System.Security.Cryptography.HashAlgorithm]::Create("sha256").ComputeHas...
To alias a command in you ~/.zshrc file, you can use the following syntax: alias [alias-name]="[command-to-execute]" For example, it is common to execute the command ls -a. You can alias this command as la as such: alias la="ls -a" After reloading the ~/.zshrc file, you w...
Detailed instructions on getting yarn set up or installed. If you have npm installed on your system: npm install --global yarn On macOS: via Homebrew: brew install yarn via MacPorts: sudo port install yarn (node will be installed if not present) On Windows: via Chocolatey: choco install...
Some Java programmers have a general aversion to throwing or propagating exceptions. This leads to code like the following: public Reader getReader(String pathname) { try { return new BufferedReader(FileReader(pathname)); } catch (IOException ex) { System.out.println(&q...
mod_rewrite must be enabled before being used on an Apache server. Debian/Ubuntu Run a2enmod rewrite Then restart Apache with service apache2 restart General case Add or uncomment the following line in the static configuration file (such as httpd.conf): LoadModule rewrite_module modules/mod_re...
Let's have a look at various options to wait for completion of tasks submitted to Executor ExecutorService invokeAll() Executes the given tasks, returning a list of Futures holding their status and results when everything is completed. Example: import java.util.concurrent.*; import ja...
We can also specify that a virtual function is pure virtual (abstract), by appending = 0 to the declaration. Classes with one or more pure virtual functions are considered to be abstract, and cannot be instantiated; only derived classes which define, or inherit definitions for, all pure virtual fun...
#include <pthread.h> #include <stdio.h> #include <string.h> /* function to be run as a thread always must have the same signature: it has one void* parameter and returns void */ void *threadfunction(void *arg) { printf("Hello, World!\n"); /*printf() is speci...
Consider these two micro-benchmarks: The first benchmark simply creates, starts and joins threads. The thread's Runnable does no work. public class ThreadTest { public static void main(String[] args) throws Exception { while (true) { long start = System.nanoTime(); ...
If you need to store images or videos in the column then we need to change the value as needed by your application max_allowed_packet = 10M M is Mb, G in Gb, K in Kb
get_defined_vars() returns an array with all the names and values of the variables defined in the scope in which the function is called. If you want to print data you can use standard functions for outputting human-readable data, like print_r or var_dump. var_dump(get_defined_vars()); Note: This...
Detailed instructions on getting tizen set up or installed. You can start developing Tizen apps on commercialized devices : https://wiki.tizen.org/wiki/Devices Or https://wiki.tizen.org/wiki/ReferenceDevices Last option is to install Tizen from scratch on existing Hardware (x86, ARM etc) : htt...
// Store a reference to the native method let open = XMLHttpRequest.prototype.open; // Overwrite the native method XMLHttpRequest.prototype.open = function() { // Assign an event listener this.addEventListener("load", event => console.log(XHR), false); // Call the s...
To install and run jboss AS standalone you can follow the processes described below(assuming that you already have java 7 and jdk installed on your mac): Download the jboss application server from here. Unzip the package and extract the folders Set up the your bash_profile like the fo...
Instructions on getting octave set up or installed. Installing Octave for debian systems (Debian, Ubuntu): Simple: sudo apt-get install octave Advanced: Well, if you want to install other external packages sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal oct...
You can get the download link for the setup file in here : https://www.visualstudio.com [Scroll to the bottom of the page and download the Visual Studio] The setups are relatively simply and common. But do take note when they ask you to download the default or custom, you can choose to download th...
Detailed instructions on getting datetime set up or installed.
You can realize a modal bottom sheets using a BottomSheetDialogFragment. The BottomSheetDialogFragment is a modal bottom sheet. This is a version of DialogFragment that shows a bottom sheet using BottomSheetDialog instead of a floating dialog. Just define the fragment: public class MyBottomSheet...
The BottomSheetDialog is a dialog styled as a bottom sheet Just use: //Create a new BottomSheetDialog BottomSheetDialog dialog = new BottomSheetDialog(context); //Inflate the layout R.layout.my_dialog_layout dialog.setContentView(R.layout.my_dialog_layout); //Show the dialog dialog.show(); ...

Page 156 of 269