Tutorial by Examples: er

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...
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...
Code example : Now Start with Creating the Pagination Controller public with sharing class Pagination { } i am going to show all the contacts in the form of pagination and there should be one checkbox for each contact to selected or deselect contact to perform delete operation on contacts. ...
.* in regex basically means "catch everything until the end of input". So, for simple strings, like hello world, .* works perfectly. But if you have a string representing, for example, lines in a file, these lines would be separated by a line separator, such as \n (newline) on Unix-like s...
Consider this example: He went into the cafe "Dostoevski" and said: "Good evening." Here we have two sets of quotes. Let's assume we want to match both, so that our regex matches at "Dostoevski" and "Good evening." At first, you could be tempted to keep...
DICOM Standard - http://dicom.nema.org/standard.html - This link contains the current, official documents. They can be downloaded or read online as web pages. DICOM Browser - https://dicom.innolitics.com/ - This link is a useful website for browsing the various DICOM information objects.
You can read all items either from any config file or type it inline. Considering if its saved in Config File // Read all list items from config file string[] countryDV = ConfigurationManager.AppSettings["countryDV"].Split(',').Select(s => s.Trim().ToUpper()).ToArray(); int DVRowLim...
Approach in this case will be different than previous example because Excel file supports the Data validation for list of items with total character count less than 256 if all items are binded directly as in previous example. But in many situation list items can be longer than 256 characters and in ...
Example shows 5 items per row: <div *ngFor="let item of items; let i = index"> <div *ngIf="i % 5 == 0" class="row"> {{ item }} <div *ngIf="i + 1 < items.length">{{ items[i + 1] }}</div> <div *ngIf="i + 2 &l...
//try same approach for currency types with format like "$#,###.00"and date "m/d/yy h:mm" XSSFFont defaultFont = (XSSFFont)workbook.CreateFont(); defaultFont.FontHeightInPoints = (short)10; defaultFont.FontName = "Arial"; XSSFCellStyle phoneCellStyle = (XSSFCellStyl...
To get a value use the .getPropertyValue() method element.style.getPropertyValue("--var") To set a value use the .setProperty() method. element.style.setProperty("--var", "NEW_VALUE")
This example will show you back navigation which is expected generally in most of the flows. You will have to add following code to every screen depending on expected behavior. There are 2 cases: If there are more than 1 screen on stack, device back button will show previous screen. If there is ...
Key Points :- used to created mutable (modifiable) string. Mutable :- Which can be changed. is thread-safe i.e. multiple threads cannot access it simultaneously. Methods :- public synchronized StringBuffer append(String s) public synchronized StringBuffer insert(int off...

Page 409 of 417