Tutorial by Examples: ase

Including a Static Section on a page is similar to including a snippet. The only difference is instead of using the word include you use the word section. {% section 'section-file-name' %} Using this tag will "hardcode" the section into your theme at the place where you put the code an...
First, install ipset if needed. Please refer to your distribution to know how to do it. As an example, here is the command for Debian-like distributions. $ apt-get update $ apt-get install ipset Then create a configuration file to define an ipset containing the IPs for which you want to open ac...
//This example gets the response from iTunes { "rest": { "name": "rest", "connector": "rest", "debug": true, "options": { "useQuerystring": true, "timeout": 10000, "headers": { "accepts": "application/json", "content-type": "applicati...
There are a number of issues with Oracle. Here's how to resolve them. Assuming your procedure output parameter is ref cursor, you will get this exception. java.sql.SQLException: Invalid column type: 2012 So change Types.REF_CURSOR to OracleTypes.CURSOR in simpleJdbcCall.declareParameters() ...
If a using-declaration occurs at class scope, it is only allowed to redeclare a member of a base class. For example, using std::cout is not allowed at class scope. Often, the name redeclared is one that would otherwise be hidden. For example, in the below code, d1.foo only refers to Derived1::foo(c...
public abstract class BaseActivity extends AppCompatActivity { private Map<Integer, PermissionCallback> permissionCallbackMap = new HashMap<>(); @Override protected void onStart() { super.onStart(); ... } @Override public void setConten...
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="${http.port}" doc:name="HTTP Listener Configuration"/> <db:mysql-config name="MySQL_Configuration" host="${db.host}" port="${db.port}"...
Opening a stream fopen opens a file stream handle, which can be used with various functions for reading, writing, seeking and other functions on top of it. This value is of resource type, and cannot be passed to other threads persisting its functionality. $f = fopen("errors.log", "a...
One time definition of a generic base class with recursive type specifier. Each node has one parent and multiple children. /// <summary> /// Generic base class for a tree structure /// </summary> /// <typeparam name="T">The node type of the tree</typeparam> pub...
select cst.constraint_schema, cst.constraint_name,                        fk.table_name, fk.ordinal_position, fk.column_name,                pk.table_name, pk.column_name                                 from qsys2.syscst cst join qsys2.syskeycst fk                         on fk.constraint_sc...
select cst.constraint_schema, cst.constraint_name,                        fk.table_name, fk.ordinal_position, fk.column_name,                pk.table_name, pk.column_name                                 from qsys2.syscst cst join qsys2.syskeycst fk                         on fk.constraint_sc...
class MainMenuListView; class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget* parent = 0); ~MainWindow(); private: MainMenuListView* menuA; MainMenuListView* menuB; MainMenuListView* menuC; };
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QWidget* w = new QWidget(this); QHBoxLayout* hbox = new QHBoxLayout(); QVBoxLayout* vBox = new QVBoxLayout(); menuA = new MainMenuListView(w, "Images"); menuB = new MainMenuListView(w, "Video...
Here is a sample output: As you can seen above, it can be useful for creating stacked menus. Note that this sample is trivial. The two widgets have the same size constraints.
Filename myEmail EMAIL Subject = "My Email Subject" From = "[email protected]" To = '[email protected]' CC = '[email protected]' Type = 'Text/Plain' ATTACH = ("my/excel/file/path/file.extension" content_type="...
Take note of the email type: Type = 'text/html'; Filename myEmail EMAIL Subject = "My Email Subject" From = "[email protected]" To = '[email protected]' CC = '[email protected]' Type = 'text/html'; Data _null_; File my...
Basics require('http').globalAgent.maxSockets = 25 // You can change 25 to Infinity or to a different value by experimenting Node.js by default is using maxSockets = Infinity at the same time (since v0.12.0). Until Node v0.12.0, the default was maxSockets = 5 (see v0.11.0). So, after more tha...
Install Firebase resource in the the AppScript To do that click on Resources and then on Libraries. Firebase has a unique project library key that need to be installed in the AppScript. Click on Libraries The following pop-up appears. Enter the following project key in the textbox. MYeP8ZEE...
Lets take fb login as testcase,will see how to capture and export as JAVA class Click on the selenium IDE icon on top right corner of your browser Enter the url https://facebook.com Click on Record button , as shown in the screenshot Export the usecase as java file Save the file in you lo...
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...

Page 35 of 40