Tutorial by Examples

Detailed instructions on getting apache-zookeeper set up or installed.
# not all of this is required, but just here for reference bl_info = { "name": "Hello World", # name of the add-on "author": "Blender developer", # name of the author "version": (1, 0), ...
You can install ImageMagick from source or Binary. In case of Windows Binary Download executable binary file. And simply click on the appropriate version and it will launch itself and follow the wizard. You can type the following command to find out whether ImageMagick is successfully installed o...
Using the magick command (or `convert for IM 6.x users) you con convert any image format to any other. with no other arguments, as little processing as possible will be done to move from one format to the other. Simply specify your input and output files. To convert a JPEG to a PNG: $ magick image....
This example demonstrate how to dynamically insert data into MySQL using Python Scrapy. You do not need to edit pipelines.py file for any project. This example can be used for all your project. Just yield you_data_dictionary from your Spider and inside pipelines.py a query will be created automat...
Enable pipelines in your settings.py ITEM_PIPELINES = { 'project_folder.pipelines.MyPipeline': 100 } Then write this code in items.py # -*- coding: utf-8 -*- from scrapy import Item, Field from collections import OrderedDict class DynamicItem(Item): def __setitem__(self, key, v...
Create a new Xamarin Forms app using PCL File -> New Solution -> Multiplatform App -> Xamarin Forms -> Forms App; Name the project as EffectsDemo Under the iOS project, add a new Effect class that inherits from PlatformEffect class and overrides the methods OnAttached, OnDetached and ...
There may be multiple reason why you want to create a text file in batch. But whatever the reason may be, this is how you do it. If you want to overwrite an existing text file use >. Example: @echo off echo info to save > text.txt But if you want to append text to an already existing t...
Detailed instructions on getting mongodb-query set up or installed.
You may want to copy files from one place to another. In this example we'll teach you. You can use the command xcopy. The syntax is xcopy c:\From C:\To Example: @echo off xcopy C:\Folder\text.txt C:\User\Username\Desktop There are also switches you can use. If you want to view them open up co...
Event Type- DDL_COMMAND_START DDL_COMMAND_END SQL_DROP This is example for creating an Event Trigger and logging DDL_COMMAND_START events. CREATE TABLE TAB_EVENT_LOGS( DATE_TIME TIMESTAMP, EVENT_NAME TEXT, REMARKS TEXT ); CREATE OR REPLACE FUNCTION FN_LOG_EVENT() RETURNS EVE...
var="hello" function foo(){ echo $var } foo Will obviously output "hello", but this works the other way around too: function foo() { var="hello" } foo echo $var Will also output "hello"
function foo() { local var var="hello" } foo echo $var Will output nothing, as var is a variable local to the function foo, and its value is not visible from outside of it.
var="hello" function foo(){ local var="sup?" echo "inside function, var=$var" } foo echo "outside function, var=$var" Will output inside function, var=sup? outside function, var=hello
Calculating the power of a given number can be done recursively as well. Given a base number n and exponent e, we need to make sure to split the problem in chunks by decreasing the exponent e. Theoretical Example: 2² = 2x2 2³ = 2x2x2 or, 2³ = 2² x 2In there lies the secret of our recursive al...
This example shows a very basic example of how to utilize onCommand. I don't suggest processing your commands directly in onCommand, but this does the trick for this simple case. In this example we attempt to set the player's gamemode. The first thing we need to do is make sure that the sender isn...
Physics is the natural science that involves the study of matter and its motion and behaviour through space and time, along with related concepts such as energy and force. The main goal of physics is to understand how the universe behaves. In a StackOverflow context physics usually refers to simul...
Most examples show instantiating and holding a LazySingleton object until the owning application has terminated, even if that object is no longer needed by the application. A solution to this is to implement IDisposable and set the object instance to null as follows: public class LazySingleton : ID...
systemd is the de facto init system in most Linux distributions. After Node has been configured to run with systemd, it's possible to use the service command to manage it. First of all, it needs a config file, let's create it. For Debian based distros, it will be in /etc/systemd/system/node.service...
Creating a project in scala is very similar to creating one in java. Here is what the entry class should look like: package com.example.myplugin; //{$TopLevelDomain}.{$Domain}.{$PluginName} import org.bukkit.plugin.java.JavaPlugin import org.bukkit.command.CommandSender import org.bukkit.comma...

Page 1163 of 1336