Tutorial by Examples: c

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...
We have simple module available in npm for goggle authetication name passport-google-oauth20 Consider the following example In this example have created a folder namely config having the passport.js and google.js file in the root directory. In your app.js include the following var express = requ...
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. ...
fun startNewActivity(){ val intent: Intent = Intent(context, Activity::class.java) startActivity(intent) } You can add extras to the intent just like in Java. fun startNewActivityWithIntents(){ val intent: Intent = Intent(context, Activity::class.java) intent.putExtra(KEY_NA...
A single-value metrics aggregation that calculates an approximate count of distinct values. Values can be extracted either from specific fields in the document or generated by a script. POST /index/_search?size=0 { "aggs" : { "type_count" : { "ca...
.* 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...
Keypoint :- SortedMap interface extends Map. entries are maintained in an ascending key order. Methods of sorted Map : Comparator comparator( ). Object firstKey( ). SortedMap headMap(Object end). Object lastKey( ). SortedMap subMap(Object start, Object end). SortedMap tailMap(Object s...
Key Points:- Implementation of Map. stores only weak references to its keys. Weak References : The objects that are referenced only by weak references are garbage collected eagerly; the GC won’t wait until it needs memory in that case. Diffrence between Hashmap and WeakHashMap:- If the Jav...
Key Points:- Is Hash table and Linked list implementation of the Map interface, with predictable iteration order. inherits HashMap class and implements the Map interface. contains values based on the key. only unique elements. may have one null key and multiple null values. ...
if object_id('tempdb.dbo.#temp') is not null drop table #temp create table #temp ( dateValue datetime, category varchar(3), amount decimal(36,2) ) insert into #temp values ('1/1/2012', 'ABC', 1000.00) insert into #temp values ('2/1/2012', 'DEF', 500.00) insert into #temp value...
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.
DICOM Tutorial - http://dicomiseasy.blogspot.com/p/introduction-to-dicom.html - Multi-chapter tutorial covering some of the most common DICOM questions. DICOM User Group - https://groups.google.com/forum/#!forum/comp.protocols.dicom - Active user group for DICOM related questions and discussions....
DCM4CHEE - http://www.dcm4che.org/ - Open Source Java DICOM toolkit. DCMTK - http://dicom.offis.de/dcmtk.php.en - C++ DICOM toolkit. Grassroots DICOM - https://sourceforge.net/projects/gdcm/ - C++ with various bindings DICOM toolkit. Merge - http://www.merge.com/Solutions/Toolkits/Merge-DICOM-T...
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...

Page 810 of 826