Highcharts.setOptions({
lang: {
contextButtonTitle: "Menú contextual del diagrama",
decimalPoint: ",",
downloadJPEG: "Desa com a imatge JPEG",
downloadPDF: "Desa com a document PDF",
downloa...
Sometimes you might accidentally run something in the shell that ends up waiting forever, and thus blocking the shell:
iex(2)> receive do _ -> :stuck end
In that case, press Ctrl-g. You'll see:
User switch command
Enter these commands in order:
k (to kill the shell process)
s (to st...
// long form
String sayHello(String name){
"Hello, ${name ? name : 'stranger'}."
}
// elvis
String sayHello(String name){
"Hello, ${name ?: 'stranger'}."
}
Notice that the "elvis" format omits the "true" term because the original comparison...
Use the System.String.Split method to return a string array that contains substrings of the original string, split based on a specified delimiter:
string sentence = "One Two Three Four";
string[] stringArray = sentence.Split(' ');
foreach (string word in stringArray)
{
Console.W...
Query can be used instead of table in import operation:
sqoop import --query 'select Id,Message from TestTable where $CONDITIONS'
--where 'id>100'
--connect "jdbc:sqlserver://192.168.1.100:1433;database=Test_db
--username user
-–pas...
By default, Shapes in Excel do not have a specific way to handle single vs. double clicks, containing only the "OnAction" property to allow you to handle clicks. However, there may be instances where your code requires you to act differently (or exclusively) on a double click. The follow...
This is an example of a function with the simplest possible support for pipelining.
Any function with pipeline support must have at least one parameter with the ParameterAttribute ValueFromPipeline or ValueFromPipelineByPropertyName set, as shown below.
function Write-FromPipeline {
param(
...
This is a simple example to display read-only data that is tabular in nature using Qt's Model/View Framework. Specifically, the Qt Objects QAbstractTableModel (sub-classed in this example) and QTableView are used.
Implementations of the methods rowCount(), columnCount(), data() and headerData() are...
# provision/bootstrap-controller.sh : path and shell filename from vagrantfile location
config.vm.define "configcontroller" do |controller|
...
controller.vm.provision :shell do |shell|
shell.path = "provision/bootstrap-controller.sh"
end
...
Method references make excellent self-documenting code, and using method references with Streams makes complicated processes simple to read and understand. Consider the following code:
public interface Ordered {
default int getOrder(){
return 0;
}
}
public interface Valued<...
To change the current bash run these commands
export SHELL=/bin/bash
exec /bin/bash
to change the bash that opens on startup edit .profile and add those lines
JasperSoft Studio
If datasource or database connection is needed to fill report, create your Data Adapter
in Repository Explorer by right clicking "Data Adapters" selecting "Create Data Adapter"
Enter preview mode by selecting the Preview tab (no errors in deign need t...