Tutorial by Examples: and

In PHP, variable values have an associated "truthiness" so even non-boolean values will equate to true or false. This allows any variable to be used in a conditional block, e.g. if ($var == true) { /* explicit version */ } if ($var) { /* $var == true is implicit */ } Here are some fun...
This is what I did to install CakePHP on a fresh installed minimal CentOS 7 Installed a CentOS-7-x86_64-Minimal-1611.iso in VirtualBox, two network interfaces: first NAT, second Host-Only set ONBOOT=yes in /etc/sysconfig/network-scripts/ifcfg-enp0s3 reboot yum update yum install net-tools (to...
Array ( [0] => Array ( [id] => 13 [category_id] => 7 [name] => Leaving Of Liverpool [description] => Leaving Of Liverpool [price] => 1.00 [virtual] => 1 [active] =...
page.includeCSS { bootstrap = fileadmin/css/bootstrap.min.css fonts = fileadmin/css/font-awesome.min.css owl = fileadmin/css/owl.carousel.css style = fileadmin/css/docs.css } page.includeJSFooter{ bootstrapmin = fileadmin/js/bootstrap.min.js lightbox = fileadmin/js/...
plugin.tx_news { settings { link { skipControllerAndAction = 1 } } } [globalVar = GP:tx_news_pi1|news > 0] config.defaultGetVars { tx_news_pi1 { controller=News action=detail } } [global] ...
import matplotlib matplotlib.use("TKAgg") # module to save pdf files from matplotlib.backends.backend_pdf import PdfPages import matplotlib.pyplot as plt # module to plot import pandas as pd # module to read csv file # module to allow user to select csv file from tkinte...
VBA Identifiers (variable and function names) can use the Latin script and may also be able to use Japanese, Korean, Simplified Chinese, and Traditional Chinese scripts. The extended Latin script has full coverage for many languages: English, French, Spanish, German, Italian, Breton, Catalan, Dani...
In memory, an image can be seen as a matrix of pixel (color). However, when an image being stored in a permanent storage, it may be stored as is (RAW format), Bitmap or other image formats with particular compression algorithm for saving storage space, e.g. PNG, JPEG, GIF, etc. When loading an image...
VsCode is unable to create the ionic project because it is a code editor.So you can create your ionic project by CLI or cmd. create your project by below command $ ionic start appName blank Above command use to create blank template ionic application. Ionic2 provide three type of templates blank...
> Run and Debug in Chrome To run the ionic project use below command in terminal or cmd or CLI $ ionic serve For debugging the ionic project ,Firstly you should add extension (Debugger for chrome) and then configure launch.json file like this. { "version": "0...
The arguments passed from the console can be received in the Kotlin program and it can be used as an input. You can pass N (1 2 3 and so on) numbers of arguments from the command prompt. A simple example of a command-line argument in Kotlin. fun main(args: Array<String>) { println(&qu...
Since BackAndroid is deprecated. Use BackHandler instead of BackAndroid. import { BackHandler } from 'react-native'; {...} ComponentWillMount(){ BackHandler.addEventListener('hardwareBackPress',()=>{ if (!this.onMainScreen()) { this.goBack(); return true; ...
I wrote a simple C code foo.c int main() { int i = 0; int j = 0; for (i = 0; i < 5; i++) { j = i + 1; } return 0; } When compiled with -O0 i.e. by disabling all compiler optimizations $ gcc -o foo.S foo.c -O0 -S I got this: .file "foo.c&...
Declaring a DLL procedure to work with different VBA versions: Option Explicit #If Win64 Then Private Declare PtrSafe Sub xLib "Kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long) #ElseIf Win32 Then Private Declare Sub apiSleep Lib "Kernel32" Ali...
Installation pip install Flask-SQLAlchemy Simple Model class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80)) email = db.Column(db.String(120), unique=True) The code example above shows a simple Flask-SQLAlchemy model, we can add an ...
The following command displays output only on the screen (stdout). $ ls The following command writes the output only to the file and not to the screen. $ ls > file The following command (with the help of tee command) writes the output both to the screen (stdout) and to the file. $ ls | ...
You can also use tee command to store the output of a command in a file and redirect the same output to another command. The following command will write current crontab entries to a file crontab-backup.txt and pass the crontab entries to sed command, which will do the substituion. After the substi...
By default tee command overwrites the file. You can instruct tee to append to the file using the –a option as shown below. $ ls | tee –a file
A HandlerThread can be used to start a thread with a Looper. This looper then can be used to create a Handler for communications with it. HandlerThread thread = new HandlerThread("thread-name"); thread.start(); Handler handler = new Handler(thread.getLooper());
In this example, a plot with curves having common y-axis but different x-axis is demonstrated using twiny() method. Also, some additional features such as the title, legend, labels, grids, axis ticks and colours are added to the plot. # Plotting tutorials in Python # Adding Multiple plots by twin ...

Page 147 of 153