Categories
English OOP

General Fields for class or database-table definition

When I start to design some table in the database or a class in my solution I always keep thinking if I have forgot some important field that I will need it later during development or it may be needed by my client. So the following fields represents a general view to define anything in […]

Categories
Algorithms English

Advises for solving strings problems and algorithms

Change the way you’re doing the loop if you face a problem in reaching the first and/or the last character. If you want to compare each two adjacent characters then it’s better to start with a loop with counter = 0. It is not always about adding new items to the result objects, sometimes think […]

Categories
Databases English Performance Search algorithms

Build trees or depend on database indexes to enhance text search?

Should we create our own trees to make searches on strings faster, or we can depend on database engine non-clustered indexes on char or Varchar fields to do so? The following facts will help us in deciding and understanding what is really happening in indexed char columns: You can make an indexed column of Varchar2 […]

Categories
English Web servers

Web servers’ connection-thread approach VS event driven approach (explained with figures)

The first time I needed to dig deeply within the understanding of the work of web server was few months ago. It was when one of the websites that I monitor got closed by the hosting company because it was consuming a huge amount of resources (specifically CPU and RAM). I fixed it after reducing […]

Categories
.NET English OOP

Abstract modifier uses and examples

Abstract modifier is added to something that is not usable or incomplete. In classes it means that the abstract class could be used only for inheritance or sub-classing (in java). Real life examples of things that’re similar to abstract class An abstract class for cars: this class may contain general features of a car, like […]

Categories
English Troubleshooting

Visual studio project cannot commit in github [fixed]

I faced this issue when I was trying to submit a solution with an MDF file, simply you cannot do any copy/move/delete to a solution while a database connection is open, to solve this you have to close the solution, or close the connections from server explorer or to close SQL service from windows services, […]

Categories
English Troubleshooting

Unable to download exe files [fixed]

After trying many things like enabling and disabling firewall and Antivirus features nothing was helpful in solving the problem, few small exe files were possible to download but the majority were not. Simply I found that I have to exclude my browser from multiple checks in Kaspersky antivirus settings, like the following: Open Kaspersky antivirus. […]

Categories
English Troubleshooting

Problem (Connection Error) in Flash Player installation

After installing Flash Player I’ve faced problems like not being able to download EXEs through any browser, and not having (connection error) during the installation of Flash Player. All the following steps are not working except the green ones: Stop antivirus – not working Stop firewall – not working Stop network attack blocker in Kaspersky […]

Categories
.NET English Parallelism

Thread class in .NET

System.Thread is the simplest and in the same time the most widely used class for Task Parallelism in DOT NET. In this article we will explain several important methods, attributes and ways to use System.Thread efficiently. We will take several cases and properties of Thread.Sleep and explore it’s effect and how can we make use […]

Categories
English Parallelism

Flynn Taxonomy

Flynn taxonomy is a classification of computer architecture that divides different architectures depending on the pluralism of instruction and data streams and threads. Practically the instructions number refers to the number of arithmetic logic units (ALU) working together, and data refers to the registers data being processed by the ALU. Single instruction stream single data […]