Tutorial by Examples

To start using FTP with Java, you will need to create a new FTPClient and then connect and login to the server using .connect(String server, int port) and .login(String username, String password). import java.io.IOException; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.n...
The C++03 standard mainly addresses defect reports of the C++98 standard. Apart from these defects, it only adds one new feature. Language Extensions Value initalization
C++98 is the first standardized version of C++. As it was developed as an extension to C, many of the features which set apart C++ from C are added. Language Extensions (in respect to C89/C90) Classes, Derived classes, virtual member functions, const member functions Function overloading, Opera...
When we attach the !important keyword to a mixin call, the Less compiler will automatically add the !important to all properties that are present within the mixin. For example, consider the below mixin: .set-default-props() { margin: 4px; padding: 4px; border: 1px solid black; font-wei...

do

Introduces a do-while loop. // Gets the next non-whitespace character from standard input char read_char() { char c; do { c = getchar(); } while (isspace(c)); return c; }
SourceCookifier parses the current source code for such components as class, function, and variable names and displays them in a tree view at a side panel. Navigation among these members is possible by double-clicking on the component name. The plugin supports a number of languages and customization...

if

Introduces an if statement. The keyword if must be followed by a parenthesized condition, which can be either an expression or a declaration. If the condition is truthy, the substatement after the condition will be executed. int x; std::cout << "Please enter a positive number." &lt...
The first substatement of an if statement may be followed by the keyword else. The substatement after the else keyword will be executed when the condition is falsey (that is, when the first substatement is not executed). int x; std::cin >> x; if (x%2 == 0) { std::cout << "Th...
Examples of using functions with hotkeys: Hotkey, a, MyFunction ; Calls MyFunction() when a is pressed MyFunction() { MsgBox You pressed %A_ThisHotkey%. } Or: a::MyFunction() MyFunction() { MsgBox You pressed %A_ThisHotkey%. }
#Persistent Menu, Tray, NoStandard ; remove default tray menu entries Menu, Tray, Add, MyDefaultAction, OnDefaultTrayAction ; add a new tray menu entry Menu, Tray, Add, Exit, Exit ; add another tray menu entry Menu, Tray, Default, MyDefaultAction ;When doubleclicking the tray icon, run the tra...
I'll demonstrate the basic usage of using functions vs using labels+gosub. In this example we'll implement simple functionality to add two numbers and store them in a variable. With functions: c := Add(3, 2) ; function call MsgBox, Result: %c% Add(a, b) { ; This is a function. Put it wherever...
The following code is taken from he official AutoHotkey documentation: Function implementation: #Persistent OnClipboardChange("ClipChanged") return ClipChanged(Type) { ToolTip Clipboard data type: %Type% Sleep 1000 ToolTip ; Turn off the tip. } Label implementati...
This script demonstrates how to receive complicated GUI events from different controls in the same event callback function. We'll be using two ListView controls for that. Now every time an action is detected on one of those ListView controls, we want a precise description of what happened and have ...
Some character may be reserved for HTML and cannot be used directly as it may obstruct the actual HTML codes. For example, trying to display the left and right angle brackets (<>) in the source code may cause unexpected results in the output. Similarly, white spaces as written in the source co...
If your package isn't only a library, but has a piece of code that can be used either as a showcase or a standalone application when your package is installed, put that piece of code into __main__.py file. Put the __main__.py in the package_name folder. This way you will be able to run it directly ...
Some people recommend that you should apply various tests to a file before attempting to open it either to provide better diagnostics or avoid dealing with exceptions. For example, this method attempts to check if path corresponds to a readable file: public static File getValidatedFile(String path...
It is possible that the client browser does not support Javascript or have Javascript execution disabled, perhaps due to security reasons. To be able to tell users that a script is supposed to execute in the page, the <noscript> tag can be used. The content of <noscript> is displayed whe...
An unsigned JWT has the header value alg: none and an empty JWS (signature) component: eyJhbGciOiJub25lIn0 .eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ . The trailing dot indicates that the signature is empty. Header { "alg": &q...
A signed JWT includes a Base64 Url Safe encoded signature as the third component. The algorithm used to generate the signature is indicated in the header. eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJzdWIiOiJKb2huIERvZSIsImFkbWluIjp0cnVlLCJpYXQiOjE0NzAzNTM5OTQsImV4cCI6MTQ3MDM1NzYyNywianRpIjoiNmU0MDRiY...
Detailed instructions on getting x++ set up or installed.

Page 723 of 1336