Tutorial by Examples

Since Supervised Learning consists of a target or outcome variable (or dependent variable) which is to be predicted from a given set of predictors (independent variables). Using these set of variables, we generate a function that map inputs to desired outputs. The training process continues until th...
Interfacing of DS18B20 with Raspberry pi Connection of DS18B20 with Raspberry pi You can see there are three terminal Vcc Gnd Data (One wire protocol) R1 is 4.7k ohm resistance for pulling up the voltage level Vcc should be connected to any of the 5v or 3.3v pins of Raspberry pi (PI...
The observer pattern is a common pattern, which is widely used in many contexts. A real example can be taken from YouTube: When you like a channel and want to get all news and watch new videos from this channel, you have to subscribe to that channel. Then, whenever this channel publishes any news, y...
In this Stack Overflow question, user txtechhelp found an issue with the ^ character which could cause a security issue. Cause anyInvaildCommand ^ Note: Make sure the caret(^) is the last character! Any extra CR\LF won't work at all! The caret looks for the next character to escape. However,...
Two main techniques allow passing data between GUI functions and Callbacks: setappdata/getappdata and guidata (read more about it). The former should be used for larger variables as it is more time efficient. The following example tests the two methods' efficiency. A GUI with a simple button is cre...
The main current versions of SAS are 9.4 and 9.3 these are the versions of the base SAS engine most commonly used today. The link to release notes for versions 9.1 + and other related documentation are included below. Please note also, there are various packages and functions which extend the funct...
Documented here in the API you see that the syntax of the call is https://api.telegram.org/bot<token>/setwebhook?url=<yoururl>. For the most part this is it. If you need more information, take a look at this guide or look at the requirements (like using HTTPS). After you set this, you c...
ifconfig The above command will show all active interface of the machine and also give the information of IP address assign to interface MAC address of the interface Broadcast address Transmit and Receive bytes Some example ifconfig -a The above command also show the disable interfac...
Let's say that whenever someone visits a profile page in Bob's website, the following URL is fetched: https://example.com/api/users/1234/profiledata.json With a response like this: { "name": "Bob", "description": "Likes pie & security holes.&quot...
Detailed instructions on getting scapy set up or installed.
Detailed instructions on getting statistics set up or installed.
Code Block TypeGlobal NamespaceLocal NamespaceModulen.s. for the modulesame as globalScript (file or command)n.s. for __main__same as globalInteractive commandn.s. for __main__same as globalClass definitionglobal n.s. of containing blocknew namespaceFunction bodyglobal n.s. of containing blocknew na...
This code example creates a UDP client then sends "Hello World" across the network to the intended recipient. A listener does not have to be active, as UDP Is connectionless and will broadcast the message regardless. Once the message is sent, the clients work is done. byte[] data = Enco...
Download and install Code::Blocks here. If you're on Windows, be careful to select a file for which the name contains mingw, the other files don't install any compiler. Open Code::Blocks and click on "Create a new project": Select "Console application" and click &...
The first function, using an array, is much faster If called without the optional parameter, will default to .ThisWorkbook.ActiveSheet If the range is empty will returns Cell( 1, 1 ) as default, instead of Nothing Speed: GetMaxCell (Array): Duration: 0.0000790063 seconds GetMaxCell (Find ...
Deleting rows is slow, specially when looping through cells and deleting rows, one by one A different approach is using an AutoFilter to hide the rows to be deleted Copy the visible range and Paste it into a new WorkSheet Remove the initial sheet entirely With this method, th...
The procedures bellow will temporarily disable all Excel features at WorkBook and WorkSheet level FastWB() is a toggle that accepts On or Off flags FastWS() accepts an Optional WorkSheet object, or none If the ws parameter is missing it will turn all features on and off for all WorkSh...
Require is a statement that Node interprets as, in some sense, a getter function. For example, say you have a file named analysis.js, and the inside of your file looks like this, function analyzeWeather(weather_data) { console.log('Weather information for ' + weather_data.time + ': '); consol...
Node's require is also very helpful when used in tandem with an NPM package. Say, for example, you would like to use the NPM package require in a file named getWeather.js. After NPM installing your package through your command line (git install request), you are ready to use it. Your getWeather.js f...

Page 1309 of 1336