A Palindromic number or string can be read in both directions. It's a form of word puzzle. A numeral Palindrome is a number which remains the same when its digits are reversed. The term palindromic is derived from Palindrome, which refers to a word whose spelling is unchanged when its letters are reversed.
Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts
Thursday, April 04, 2019
Working with Dictionaries in C#
In .NET, a Dictionary class is a collection of a key and value pair of data. C# represents a generic Dictionary class that can be used to create a collection of objects. The key should be identical in a key-value pair and it can have at most one value in the dictionary. TKey represents the data type used for the dictionary's keys, and TValue represents the data type used to store the information or data associated with a key. This class is defined in the System.Collections.Generic namespace. You should import the System.Collections.Generic namespace in code to use the dictionary.
Extracting Text from an Image Using Tesseract in C#
Tesseract engine optical character recognition (OCR) is a technology used to convert scanned paper documents, PDF files, and images to searchable text data. The OCR engine detects the characters present in the image and puts those characters into words, enabling developers to search and edit the content of the document. Tesseract optical character recognition engine is one of the most accurate OCR engines currently available for .NET. It's licensed under Apache 2.0 and has been supported by Google since 2006. Tesseract OCR library is available for various different operating systems. In this article, I will demonstrate extracting image text using Tesseract and writing C# code under Windows OS.
Wednesday, February 14, 2018
SOLID Design Principles with Implementation in C#
In Object Oriented Programming (OOP) concepts, we should have low coupling, high cohesion, and strong encapsulation. The SOLID principles of OOPS help developers to achieve scalability by applying these principles together, so that we are able to write better quality and more robust code. The system created by following this principle becomes easy to maintain, reusable, and easily extendable over time. SOLID principles were introduced by Michael Feathers for five principles.
Monday, January 15, 2018
Dot NET Dependency Injection Frameworks
When designing a software application, a major concern is that the design must be loosely coupled because loose coupling offers greater reusability, maintainability, and testability. Dependency Injection (DI) reduces the coupling between classes and moves the binding of abstraction and concrete implementation out of the dependent class. Dependency Injection enables developers to better manage future code changes and complexity in our software, thus helping us to make our code maintainable. Dependency Injection could be achieved by Construction Injection, Setter Injection, and Interface-based Injection techniques.
More
More
Creating Excel Charts in C#
Microsoft Office Excel Object Library, commonly known as Microsoft Office Interop Object, can help developers generating and exporting report from Microsoft Excel. In this tutorial, I will explain with code snippets how to plot a graph from the data in Excel sheet, and export a chart from Excel sheet through C# and save it locally. This tutorial will be very useful for developers working on Desktop and Web applications using Visual Studio .NET where we need to do lot of report generation from Microsoft Excel.
More
Tuesday, October 10, 2017
Integrating NLog with Visual Studio
NLog is an open source logging framework that enables you to add high-quality logs and sophisticated tracing for your .NET application. It's a free framework, cross-platform, and easy to configure and extend. NLog comes with excellent support for log routing and management capabilities. NLog can log your application data and create logs regardless of the size and complexity of your application.
More
Tuesday, October 03, 2017
Creating and Reading Application Logs in .NET
An error-free piece of code theoretically should exist, but, in reality, it's almost impossible to test whether an application works under every situation. When errors occur, there are different ways to handle them. As a developer, it's best practice to detect and catch errors and log them as well. For example, performance problems may occur only when your application is dealing with a large data load. To diagnose these errors in a production environment, you need to log errors automatically so they can be reviewed and analyzed at a later time to fix the issue. The .NET Framework provides a wide range of logging options; Windows System Event Log is one of those from your .NET application. As a developer, you can write code to log an error in the Event viewer and gather information about the software problems and monitor system events.
More
More
Friday, September 29, 2017
Integrating Adaptive Cards with the .NET Bot Framework
Adaptive Cards is an open platform card exchange format for developers. It provides developers a new way to compose UX (user experiences) through multiple devices. An adaptive card is a piece of UI (HTML, CSS, and JavaScript) defined by the developer and rendered by the native app (bot application) to display required content to the end user. The Bot Framework connector renders these cards through different channels, such as Skype, Facebook, Emulator, WebChat, Slack, Kik, Telegram, SMS, GroupMe, Email, Bing, and so forth. An Adaptive Card can contain text, speech, images, buttons, and input fields created using the JSON format. Following the NuGet library implements classes for building and serializing adaptive card objects in the .NET platform.
More
More
Sunday, September 03, 2017
Sending Emails Using the Office 365 APIs
Developers now can send e-mails using Exchange Online as an SMTP server configured in the configuration file. Office 365 APIs also provide options to developers for sending e-mails from devices/applications. Microsoft Office 365 API Tools for Visual Studio enable developers to integrate Office 365 services into their applications. Office 365 APIs can be accessed by using libraries available for server-side .NET, client-side JavaScript, and SDKs.
More
More
Saturday, August 26, 2017
Access Office 365 REST APIs Using .NET Libraries
Microsoft's new Cloud offering of Office 365 APIs is very popular now a days among developers. Developers can access the Office 365 REST APIs by using libraries available for .NET and JavaScript. Along with these libraries, the Visual Studio 2017 release also brings some key updates to developers for the tooling experience, making it easier to interact with Office 365 services.
More
More
Saturday, July 22, 2017
Emgu Integration with .NET: Integrating Images
OpenCV is a very popular library written in the native C and C++ programming languages for processing images. Programmers familiar with the C# and Visual Basic.NET languages often face challenges in using OpenCV. Luckily for C# developers, a cross platform .NET wrapper to the OpenCV image processing library is available; it's named Emgu CV. This wrapper allows C# programs to communicate with native APIs of the underlying library that was written with unmanaged code. Emgu CV functions can be called from languages such as C#, VB, VC++, Python, and so forth. This wrapper can be compiled in Mono and run on Windows, Linux, Mac OS X, iPhone, iPad and Android devices.
More
More
Subscribe to:
Posts (Atom)
Mocking API Responses in Azure API Management Portal
A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...
-
A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...
-
Microsoft Azure has multiple services for hosting HTTP-based web applications. Visual Studio developers can directly publish web application...
-
LiteDB is a simple, serverless, fast and lightweight, embedded .NET document database written in .NET C# managed code. It's completely...