Tags » C#

Champion Breweries Plc.

ANNUAL REPORTS & FINANCIAL STATEMENTS

– – – – 2017 2016 2015 2014 2013 2012

Please note: Some annual reports contain heavy graphics which slow down the viewing process a little. 7 more words

ANNUAL REPORTS & FINANCIALS

I Wanted to Like C++

I really did. I programmed in C++ 20 plus years ago, first on a Sparc workstation and later on a Windows computer. At the time, it seemed to be a good language, and in fact about the only object oriented language for developing both server and client applications. 571 more words

How to build URIs with the UriBuilder class in C#

You can normally use the URI object to construct URIs in C#. However, there’s an object called UriBuilder which lets you build up a URI from various elements. 219 more words

.NET

RestSharp timeout

RestSharp is using HttpWebRequest under the hood, which has a default timeout of 100 seconds.

Ref: https://stackoverflow.com/questions/28829524/what-is-default-timeout-value-of-restsharp-restclient

This is a bit surprise because in other web API, e.g. 17 more words

C#

render the scene using OpenCV

bool openVideo() {
 int width = viewer.core.viewport(2); int  height = viewer.core.viewport(3); //std::cout << "w*h = " << width << "*" << height << std::endl; bool isOpened = outputVideo.isOpened();
 if (!isOpened && width != 0 && height != 0) { std::string videoPath(TUTORIAL_SHARED_PATH "video.avi");
 outputVideo.open(videoPath, -1, 29, cv::Size(width, height), true); //std::cout << "video path: " << videoPath << std::endl; //std::cout << "isopen = " << outputVideo.isOpened() << std::endl; return true; } else if (isOpened) { return true; } else { return false; }}
void main(){
 if (!openVideo()) { std::cout << "error to open the video." << std::endl; std::cin.get(); }   // Allocate temporary buffers     Eigen::Matrix<unsigned char, Eigen::Dynamic, Eigen::Dynamic> R(height, width);     Eigen::Matrix<unsigned char, Eigen::Dynamic, Eigen::Dynamic> G(height, width);     Eigen::Matrix<unsigned char, Eigen::Dynamic, Eigen::Dynamic> B(height, width);     Eigen::Matrix<unsigned char, Eigen::Dynamic, Eigen::Dynamic> A(height, width);//(1280, 800)

 // Draw the scene in the buffers  cv::Mat cv_pixels( height, width, CV_8UC3 ); viewer.core.draw_buffer2(viewer.data, viewer.opengl, true, R, G, B, A, cv_pixels); //outputVideo << cv_pixels;   outputVideo.write(cv_pixels);}
OpenCV

Count of smaller elements

A Problem From ‘GEEKS FOR GEEKS’

Standard: Easy.

Problem Statement:

Given an sorted array of size n. Find number of elements which are less than or equal to given element. 151 more words

#programming