Quantcast
Browsing all 195 articles
Browse latest View live

13g. wxWidgets – Archive Formats

OVERVIEW wxWidgets provides support for reading and writing the following archive formats: zip, tar and zlib. Of these, the zip format is the most commonly [...]

View Article


13h. wxWidgets – Interprocess Communications

OVERVIEW Interprocess communication is useful when two programs need to communicate with each other. There are already existing networking protocols like TCP/IP, HTTP, FTP which [...]

View Article


Javascript – let, var and const

OVERVIEW There are some small but important differences between using var, let and const: A var can be re-declared and reassigned different values. Let variables [...]

View Article

Javascript – String Interpolation

OVERVIEW An alternative to using string concatenation is to use string interpolation. String interpolation allows us to put variables in the string value which are [...]

View Article

Javascript – Spread Operator

OVERVIEW The Spread operator is a little-known operator which allows you to join arrays together. This might sound similar to the join() function but the [...]

View Article


Binary Search of an Integer array

The code below searches for a target integer and returns the index of the array if it is found else it returns a -1. The [...]

View Article

Javascript Arrow function

OVERVIEW The arrow function acts somewhat like the lamdba expression in Java. It allows you to define functions in a shorthand syntax. The sample code [...]

View Article

Javascript – Destructuring

OVERVIEW Destructuring is a feature which allows us to unpack values from arrays or properties from objects without having to write statements for them. In [...]

View Article


Doing a Merge Sort

The code below uses Merge Sort to sort an array of integers The output is shown below 6,78,19,54,32,-9,-10,87,12,31, divide() - 0,9 mid=4 divide() - 0,4 [...]

View Article


Amazon Polly Speech Marks Highlighting Words in real-time

OVERVIEW Amazon Polly provides a functionality to download a Speech Marks file , along with the standard audio file of a Text to Speech input. [...]

View Article

Javascript – Promises

OVERVIEW Promises are a way of handling asynchronous events in javascript. Prior to promises, the only true asynchronous feature was in XMLHttpRequest where ajax calls [...]

View Article

Rotate an Array

OVERVIEW We see how to rotate elements in an array both right and left a certain number of times. We use the mod operator to [...]

View Article

Longest Substring Without Repeating

OVERVIEW The objective is to write a function which can identify the longest substring in a string which does not have repeating characters. Examples given [...]

View Article


Javascript – let, var and const

OVERVIEW There are some small but important differences between using var, let and const: A var can be re-declared and reassigned different values. Let variables [...]

View Article

Find All Permutations of a String

OVERVIEW The code given below prints all the possible permutations of a string. It does not check for duplicate occurrences of a character. SAMPLE CODE [...]

View Article

Browsing all 195 articles
Browse latest View live