Posts
22
Comments
75
Trackbacks
0
.Net
Semaphores for better distribution of work items across threads
As developers we will often find ourselves doing loops/iterations to process hundreds, thousands or even millions of items, e.g. parsing files, screen scraping sites, doing complex computations on multiple rows etc. To process these types of jobs, we can take a look on some supermarket lines, where we have 1 long line with several counters catering to 1 customer at a time, when a cashier is done with the current customer, one customer will be called from the line. On the programming world we have ......
Posted On Tuesday, September 13, 2016 7:20 PM | Comments (2)
AngularJS2 on ASP.Net Core using TypeScript Part 3 - Attribute Directives
Previously we started creating our seed project then we created our first AngularJS2 app, on this post we will try to play with AngularJs2’s Attribute Directives. Basically, Attribute Directives allows us to change the appearance or behavior of a DOM Element, such us changing colors of DIVS when our mouse enters or exits, or alter the behavior of a DOM element when clicking them. For this Post, We will use the current state of the project we used on our last post, you can go back to my previous posts ......
Posted On Monday, July 18, 2016 11:25 PM | Comments (4)
AngularJS2 on ASP.Net Core using TypeScript Part 1 - Preparing the Seed Project
Starting to play with technologies that are not yet released is a pain in the a#$%. First, because big changes can occur thus breaking our proof of concept projects, Second, looking for a good resource online is not as rich when looking for resources for products that are already released, Third, the list of pains goes on … To start the series we will begin by preparing what we need. On Part 2 of the series, We will start creating our first AngularJS2 on ASP.Net Core using TypeScript Updates : July ......
Posted On Friday, June 24, 2016 5:46 PM | Comments (5)
Semaphores–queuing with multiple workers–C#
One of the challenges of working with queues is how to properly and neatly process each item using multiple workers, luckily on .Net we have Semaphores. “In computer science, a semaphore is a variable or abstract data type that is used for controlling access, by multiple processes, to a common resource in a concurrent system such as a multiprogramming operating system.” https://en.wikipedia.org/wi... Below is a simple program that demonstrate the use of semaphore with a parametized ......
Posted On Thursday, May 19, 2016 9:20 PM | Comments (0)
Highcharts Export Tool Step by Step for IIS7 and .Net 2.0/4.0
1. Download Highcharts Export Module for ASP.Net From Tek4 https://github.com/imclem/H... Create New Website using IIS3. Copy the contents of Exporting_Demo_website to the root folder of the newly created Web Site4. Configure Application Pool entry for the new website 1. Open IIS Configuration Console 2. Go to Application Pools 3. Right click on the name of the new application and select Advance Settings 4. Set Managed Pipeline Mode - Classic5. Configure ISAPI and CGI ......
Posted On Tuesday, June 17, 2014 5:43 PM | Comments (1)
Tag Cloud