Tutorial by Examples: and

Tk is the absolute root of the application, it is the first widget that needs to be instantiated and the GUI will shut down when it is destroyed. Toplevel is a window in the application, closing the window will destroy all children widgets placed on that window{1} but will not shut down the program...
Text box controls are typically used to accept input from the user. A text box control can accept one or more lines of text depending upon the settings of the TextMode attribute. Label controls provide an easy way to display text which can be changed from one execution of a page to the next. If you...
A check box displays a single option that the user can either check or uncheck and radio buttons present a group of options from which the user can select just one option. To create a group of radio buttons, you specify the same name for the GroupName attribute of each radio button in the group. If...
A radio button list presents a list of mutually exclusive options. A check box list presents a list of independent options. These controls contain a collection of ListItem objects that could be referred to through the Items property of the control. Basic syntax of radio button list: <asp:RadioB...
The bulleted list control creates bulleted lists or numbered lists. These controls contain a collection of ListItem objects that could be referred to through the Items property of the control. Basic syntax of a bulleted list: <asp:BulletedList ID="BulletedList1" runat="server&quo...
Octave commands can be saved in a file and evaluated by loading the file using source. For instance, let hello.m be the text file containing two lines (the first line is a comment) # my first Octave program disp('Hello, World!') If you type source hello.m at an Octave command prompt you will g...
A process with a sensitivity list cannot also contain wait statements. It is equivalent to the same process, without a sensitivity list and with one more last statement which is: wait on <sensitivity_list>; Example: process(clock, reset) begin if reset = '1' then q &l...
AWS Codecommit can be used as storage for private GIT repositories. The setup involves a few steps, assuming you have a valid AWS account already. Sign up for AWS Codecommit. Currently only region us-east-1 is available. Create a IAM user who will have access to the repositories, eg codecommit-u...
Nightwatch supports creating custom commands that can simulating keystrokes, mouse clicks, and other inputs. A custom command can be chained with other Nightwatch commands, like so: module.exports = { "Login App" : function (client) { client .url("http://localhost:300...
What and Why ? Asp.Net’s Web API2 is the latest version of Web API. It is an easy way to implement a RESTful web service using all of the goodness that the Asp.Net framework provides. Once you understand the basic principles of REST, then a Asp.net Web API2 will be very easy to implement. Web API2...
Consider a one to one bidirectional relationship between employee and desk. Employee.java @Entity public class Employee { @TableGenerator(name = "employee_gen", table = "id_gen", pkColumnName = "gen_name", valueColumnName = "gen_val", allocationSize...
Show all available databases: show dbs; Select a particular database to access, e.g. mydb. This will create mydb if it does not already exist: use mydb; Show all collections in the database (be sure to select one first, see above): show collections; Show all functions that can be used w...
First, import modules and set connection strings. If you need parameters, you can either put them directly in the URL string (an API in this case) or build them as a dict and pass them to the params argument. import requests import json params = {'id': 'blahblah', 'output': 'json'} # You could ...
How to implement FirebaseRealTime database in android application. Following is the steps for do it. First install firebase sdk, If you dont know how to install then following is the URL for help. Install Firebase SDK After thet register your project in firbase console, URL of the firbas...
A lot of emoji consist of more than one code point. 🇯🇵: A flag is defined as a pair of "regional symbol indicator letters" (🇯 + 🇵) 🙋🏿: Some emoji may be followed by a skin tone modifier: 🙋 + 🏿 😀︎ or 😀️: Windows 10 allows you to specify if an emoji is colored or black/white b...
How do you handle errors, rather then log them to the console? Bad way: Router.route('/') .get((req, res) => { Request.find((err, r) => { if(err){ console.log(err) } else { res.json(r) } }) }) .post((req, res) => { const reque...
XML <GrandFather name="Bardock" gender="male" spouse="Gine"> <Dad name="Goku" gender="male" spouse="Chi Chi"> <Me name="Gohan" gender="male" /> <brother name="Goten" gender=&q...
Details to explain, with picture
The first thing you want to do for local development is install ElasticSearch in your machine and test it to see if it is running. It requires Java to be installed. The installation is pretty straightforward: Mac OS X: brew install elasticsearch Ubuntu: sudo apt-get install elasticsearch Then...
User defined table functions represented by org.apache.hadoop.hive.ql.udf.generic.GenericUDTF interface. This function allows to output multiple rows and multiple columns for a single input. We have to overwrite below methods : 1.we specify input and output parameters abstract StructObjectInspe...

Page 100 of 153