Tutorial by Examples: a

It's possible to navigate the browser directly, like using the standard toolbar commands available on all browsers: You can create a navigation object by calling Navigate() on the driver: IWebDriver driver INavigation navigation = driver.Navigate(); A navigation object allows you to perform ...
Objective-C UIGraphicsBeginImageContext(self.view.frame.size); [[UIImage imageNamed:@"image.png"] drawInRect:self.view.bounds]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); self.view.backgroundColor = [UIColor colorWithPatternIma...
HanlderManager providing: public class HandlerManagerProvider { private static HandlerManager handlerManager; private HandlerManagerProvider() { } public static HandlerManager get() { return handlerManager != null ? handlerManager : (handlerManager =...
Processing provides a method named line() to draw a line on the screen. This code draws a white 10 pixel line on black background. void setup() { size(500, 500); background(0); stroke(255); strokeWeight(10); } void draw() { line(0, 0, 500, 500); } The signature of m...
Objective-C Just log this see how to use a particular filter NSArray *properties = [CIFilter filterNamesInCategory:kCICategoryBuiltIn]; for (NSString *filterName in properties) { CIFilter *fltr = [CIFilter filterWithName:filterName]; NSLog(@"%@", [fltr a...
Detailed instructions on getting doxygen set up or installed.
Detailed instructions on getting pagination set up or installed.
Heap sort is a comparison based sorting technique on binary heap data structure. It is similar to selection sort in which we first find the maximum element and put it at the end of the data structure. Then repeat the same process for the remaining items. Pseudo code for Heap Sort: function heapsor...
Using compose with a View, ViewModel and Model is an easy way to reuse and combine different Views and ViewModels. Given the following View and ViewModel (applies to each alternative below): src/greeter.html <template> <h1>Hello, ${name}!</h1> </template> src/gree...
Note: at is not installed by default on most of modern distributions. To execute a job once at some other time than now, in this example 5pm, you can use echo "somecommand &" | at 5pm If you want to catch the output, you can do that in the usual way: echo "somecommand > o...
public class InsertionSort { public static void SortInsertion(int[] input, int n) { for (int i = 0; i < n; i++) { int x = input[i]; int j = i - 1; while (j >= 0 && input[j] > x) { input...
The following documentation describes both MySQLi and PDO supported pagination solution. Go to https://github.com/rajdeeppaul/Pagination and download pagination.php file into your project directory. Let's say your directory structure looks like this: project directory | |--paginati...
There are quite a number situations where one has huge amounts of data and using which he has to classify an object in to one of several known classes. Consider the following situations: Banking: When a bank receives a request from a customer for a bankcard, the bank has to decide whether to issue...
from datetime import datetime a = datetime(2016,10,06,0,0,0) b = datetime(2016,10,01,23,59,59) a-b # datetime.timedelta(4, 1) (a-b).days # 4 (a-b).total_seconds() # 518399.0
Uses C standard format codes. from datetime import datetime datetime_string = 'Oct 1 2016, 00:00:00' datetime_string_format = '%b %d %Y, %H:%M:%S' datetime.strptime(datetime_string, datetime_string_format) # datetime.datetime(2016, 10, 1, 0, 0)
Uses C standard format codes. from datetime import datetime datetime_for_string = datetime(2016,10,1,0,0) datetime_string_format = '%b %d %Y, %H:%M:%S' datetime.strftime(datetime_for_string,datetime_string_format) # Oct 01 2016, 00:00:00
malloc() often calls underlying operating system functions to obtain pages of memory. But there is nothing special about the function and it can be implemented in straight C by declaring a large static array and allocating from it (there is a slight difficulty in ensuring correct alignment, in pract...
Let's say we have 8 houses. We want to setup telephone lines between these houses. The edge between the houses represent the cost of setting line between two houses. Our task is to set up lines in such a way that all the houses are connected and the cost of setting up the whole connection is mini...
FullCalendar can be downloaded from it's website: https://fullcalendar.io/download/ from NPM: $ npm install fullcalendar from Bower: $ bower install fullcalendar or CDNJS: //cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/fullcalendar.min.js //cdnjs.cloudflare.com/ajax/libs/fullca...
Depending on your target machine, you need to choose a supported ROS Version (or vice-versa). Although ROS installation is well documented in the ROS wiki, It might be confusing to find them. So, here's a table of the ROS Version, target platforms & architecture and the links for the appropriate...

Page 793 of 1099