perl -Mojo -E 'p("http://localhost:3000" => form => {Input_Type => "XML", Input_File => {file => "d:/xml/test.xml"}})'
File d:/xml/test.xml will be uploaded to server which listen connections on localhost:3000 (Source)
In this example:
-Mmodule execu...
Type below command:
instmodsh
It'll show you the guild as below:
Available commands are:
l - List all installed modules
m <module> - Select a module
q - Quit the program
cmd?
Then type l to list all the installed modules, you can also use command m &l...
A Bootstrap modal dialog is a Bootstrap component which creates a modal dialog window which floats over page-level content.
Here is an example of the basic usage of a Bootstrap modal dialog in HTML:
<div class="modal fade" tabindex="-1" role="dialog">
<div...
Modal dialog components can be instantiated via jQuery with the function $('#myModal').modal(options), where $('#myModal') is a top-level reference to the specific modal dialog and options is a Javascript object specifying the modal dialog's default attributes.
The options object allows for multipl...
IronPython enables to use generic classes and methods from the .net framework.
Generics can be used with the same syntax as accessing an index. For passing more than one type-parameter, they must be separated with a comma:
l = Dictionary[int, str]()
That way we create a dictionary where keys on...
Instead of attribute Image and Ada.Text_IO.Put on enumeration literals we can only use the generic package Ada.Text_IO.Enumeration_IO to print out the literals.
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
type Fruit is (Banana, Pear, Orange, Melon);
package Fruit_IO is new Enume...
Attribute Image capitalizes all characters of enumeration literals. The function Case_Rule_For_Names applies upper case for the first character and makes the rest lower case.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Maps.Constants; use Ada.Strings.Maps.Constants;
with Ada.Strings.Fixed...
The FULL hint tells Oracle to perform a full table scan on a specified table, no matter if an index can be used.
create table fullTable(id) as select level from dual connect by level < 100000;
create index idx on fullTable(id);
With no hints, the index is used:
select count(1) from fullTabl...
You can set the desired UI widget's stylesheet using any valid CSS. The example below will set a QLabel's text color a border around it.
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Mai...
Simply specifying a file destination, echo will create, write, or append to a file.
<echo file=example.txt" append="false">
hello world
</echo>
requests uses specific environment variables automatically for proxy detection.
HTTP_PROXY will define the proxy URL to use for HTTP connections
HTTPS_PROXY will define the proxy URL to use for HTTPS connections
Once these environment variables are set, the Python code does not need to pass a...
The whole ES6 spec is not yet implemented in its entirety so you will only be able to use some of the new features. You can see a list of the current supported ES6 features at http://node.green/
Since NodeJS v6 there has been pretty good support. So if you using NodeJS v6 or above you can enjoy usi...
Xcode by itself has quite a few good tools built in, but sometimes you just want to change a specific behavior or create a convenience shortcut.
That's why there's Alcatraz.
Installation
curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
Throw this ...
Open phone's settings
open battery
open menu and select "battery optimization"
from the dropdown menu select "all apps"
select the app you want to whitelist
select "don't optimize"
Now this app will show under not optimized apps.
An app can check whether it's...
// $orders is collection
$orders->addAttributeToSelect('status'); // get status attribute
$orders->addAttributeToSelect('*'); // get all attributes
To get the raw value of a field on the Context Item:
Sitecore.Context.Item["Field Name"];
To get the raw value of a field on a given item, item:
item["Field Name"];
The background script is like any other JavaScript code. You can debug it using same tools you debug other JavaScript code in Chrome.
To open the Chrome Developer Tools, go to chrome://extensions, and turn on Developer mode:
Now you can debug any extension that have a background page or script. ...