|
Πρόσφατες Δημοσιεύσεις
-
If you are a developer on a Windows machine and you want to access a Redis Server while you build your application, you have several options; one of them is to use the Redis port on Windows project by MSOpenTech, download the latest binaries and have your Redis Server running on Windows. Another option is to have a Linux VM running on your machine and connect to it whenever you need it.......
|
-
Windows 10 Anniversary update offers a new feature for developers, an Ubuntu-based Bash shell that can run Linux software directly on Windows. How to install it First of all, you need to enable the Developer Mode on Windows 10. To do so, open Settings app and head to Update & Security. Then on the left side click on For Developers option and finally, activate the Developer Mode......
|
-
In this post I will try to explain why the Repository Pattern is not redundant when we use an ORM like Entity Framework in our application. There are many blog posts and many questions/answers in places like StackOverflow where developers argue about that issue. I will not be writing code in this article but I will try to explain why Entiti Framework does not implement the Repository Pattern and what is the difference between them are. Before reading this post by all means do have a look at this post of mine where I explain the Repository Pattern in detail. Let me say a few words first about Entity Framework first. Entity Framework is an ORM. The .Net framework provides support for Object Relational Mapping through EF. So EF is a an ORM tool and it is now the main data access technology that microsoft works on. I use it quite extensively in my projects. Through EF we have many things out of the box provided for us. We have the automatic generation of SQL code. It maps relational data to strongly typed objects...
|
-
In this post I will try to define the Repository Pattern, explain what it is and how we must use it in my ow words and according to my experience as a software engineer. I will not be writing much code in this post but I will highlight the reasons why we need the Repository Pattern and what it helps us achieve. Let me start with the official definition. Martin Fowle in his book Patterns of Enterprise Application Architecture (a must for every software engineer) gives the definition of the Repository Pattern: "Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects.". You can read more link in his post . In simpler words, the Repository Pattern creates an abstraction layer between the data access layer and the business logic layer of an application . Repository design pattern is a way to simplify data access and enforce separation of concerns . In every medium to large business application the Repository Pattern is necessary to bring seperation of concerns...
|
-
In Azure if you have two or more SQL Databases and you want to perform a query across them, you might come across the following error: [crayon-579cfaea2349f498907233/] In order to perform cross database queries among SQL Azure databases you need to use the elastic database query feature. What is the Elastic Database Query Feature? The elastic database query feature enables you to run a Transact-SQL query......
|
-
In our previous article we explored the option of creating, deploying and managing the Parse Server using a pre-configured VM image on Microsoft Azure. In this post we are going to describe an easy way for Parse developers to continue their work on Microsoft Azure by leveraging the following mobile services; Azure App Service and Notification Hubs. In Azure MarketPlace, when searching for Parse Server, you may come across......
|
-
What is it? EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control......
|
-
Node.js is updating quite frequently these days, so using your terminal on a Mac or command line on Windows would make update process faster. Updating Node.js on a Mac To update node.js on a mac, through terminal, you have a lot of options through popular package managers or node.js version managers. N N is a very simple node.js version management system. If you don’t have it,......
|
-
Parse was founded in 2011, in order to provide backend tools for mobile developers that help them store data in the cloud, manage identity logins, handle push notifications and run custom code in the cloud. In 2013 it was acquired by Facebook and in 2014 it was reported to power 500,000 mobile apps. Parse Server is an open source version of the Parse......
|
-
Parse was founded in 2011, in order to provide backend tools for mobile developers that help them store data in the cloud, manage identity logins, handle push notifications and run custom code in the cloud. In 2013 it was acquired by Facebook and in 2014 it was reported to power 500,000 mobile apps. Parse Server is an open source version of the Parse......
|
-
In this post I am going to create a hands on example, a sample ASP.Net MVC application where I will demonstrate the concept of ViewModels. As we know MVC is a UI design pattern. MVC is based on an architecture model that embraces the so called "seperation of concern pattern". There are three main building blocks in the MVC pattern. The Controller orchestrates everything.When we have an HTTP request coming in, that request is routed to the Controller. The View talks to the Model. The Model has the data that the View needs to display.The View does not have much logic in them at all. We design our business domain (after extracting our use cases from the specification document) by creating the appropriate classes in the Models folder. The Controller handles all user interaction logic. The View contains all the user interface that the user will interact. So if MVC is a separation of concerns pattern, why we need another concept like ViewModels. In our ASP.Net MVC applications we need to pass data, or display data from...
|
-
Nowadays, it seems very common to upload an image to an application, have it analyzed and get useful info about it; have you ever wondered,though, how easy it is to add this functionality to your own app? I am going to start a series of posts, describing a simple ASP.NET core application that allows you to upload images, detect faces and extract......
|
-
In this post I will use a simple ASP.Net 5.0 MVC application to implement a jQuery Ajax call to an ASP.Net MVC controller. JQuery is not only about DOM manipulation and handling events on the client. It is very powerful when we want to manipulate HTML elements but also can talk with server side and instantiate In this example we will use the JQuery Ajax function to talk to an ASP.Net MVC controller and result JSONResult to the view. You can have a look in this post of mine where I talk about JQuery Ajax functions. In this post I provide a more extended example on how to use JQuery Ajax functions. I am going to create a sample application where I will have a simple dropdown which I will populate with data. Every time there is a change in the DropDown control, there will be a JQuery Ajax call to the controller. There are employees that belong to projects, one project has many employees. This is 1->N relationship between projects and employees. I am going to need a database for this example. The database is called...
|
-
Boolean types are quite common to be found within a database. Alike many other types there are boolean and nullable boolean types. Simple boolean types consist of two values: True and False. Nullable ones offer null as a third choice. So, do we really need this third option in our database or source code and if so how should we deal with it? Nullable types Nullable bool is not the only type that accepts null values. For example we got nullable integers and nullable DateTimes. So, what is the meaning of null? To put it simply null means we have no idea what the value is. So if, you got a nullable int, its values could be 10, 100, 0 or null. Now, 10 and 100 are standard values. So is 0, even if it actually refers to the number of zero objects. However null tells us that we do not know if the value is any one of these. Supposing int refers to the Bahamas' number of citizens. Setting null value to that variable does not imply that the Bahamas do not exist or have no citizens or that there is no record...
|
-
At Trafilm project’s Metadata (http://github.com/zoomicon/Trafilm.Metadata) I have a linked data structure where a Film contains multiple Conversations which contain multiple L3SToccurrences, which in turn contain multiple L3TToccurrences. I had the need to calculate a list of all unique L2language values of L3TToccurrence grand-grand-children for a Film (to keep as calculated metadata for display at the […]...
|
-
HTML Encoder HTML Decoder HTML-CSS-JS Prettyfier HTML Compression & more...
|
-
At MonoX Social CMS, which I use at both ClipFlair Social and Trafilm websites, I was in the need of hiding some HTML markup when the user is not signed-in. The solution for this is to add runat="server" to the HMTL element one wants to hide and then set the Visible property that the object […]...
|
-
In case this bites you too with a "Path not found" error, note that calling a label in a batch file, fails if you redirect its output (useful to log the output of the batch file to a file) and not use a full path for the file to redirect to @echo off call :process […]...
|
-
Content Delivery Network or Content Distribution Network (CDN) is a globally distributed network of proxy servers, deployed in multiple data centers, which serve content to end users with high availability and high performance. Usually, when a user visits your site, he/she gets redirected to your web host’s server, which is found at a central location. Based on the distance between the user’s and the server’s......
|
-
Wouldn’t it be nice if I could use in C# the following syntax? for (SomeType repeaterVariable in SomeEnumerable where someBooleanExpressionOfRepeaterVariable) doSomethingUsingRepeaterVariable; e.g. use this one: instead of this one: BTW, if you wonder what FixTime does, it prepends 0: to time strings to make sure they are of format h:m:s.f Have added […]...
|
-
When developing/architecting our custom ASP.Net MVC applications we do use the Repository Pattern/Generic Repository Pattern . I want to share my experience and thoughts with the community of developers out there that use Generic Repositories in their code. At first a definition is appropriate. Martin Fowler gives the definition of the Repository Pattern: "Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects.". You can read more link in his post . In simpler words, the Repository Pattern creates an abstraction layer between the data access layer and the business logic layer of an application . Repository design pattern is a way to simplify data access and enforce separation of concerns. When I began learning about repositories and implementing them in my own software design, it had a huge impact on my application architecture. It helped me to automate testing practices, forced me to consider separation of concerns with each method and behavior I added...
|
-
In Windows when you want to copy the path for your folder you click on the address bar and simply copy-paste the address path, but in Finder- in your Mac- you don’t have that option. So how you do that then? The process is very simple and is going to be described in the next few steps. Launch Automator Create Service......
|
-
There are some scenarios where you might want to reinstall nuget packages in your projects, like for example: Project Retargeting or Upgrade This can be useful when a project has been retargeted or upgraded and if the package REQUIRES reinstallation due to the change in target framework. You Broke the Project In case, you have inadvertently modified contents installed from a......
|
-
I’d like to be able to do someFunctionReturningY(x){ somePropertyOfY=4; … }.DoSomething(); It should also support casting without needing parentheses in the following type of statement: Z zzz = (Z)functionReturningY{somePropertyOfZ=…; … }; The same pattern should work for enums too apart from object instances. It is inspired by initializers in C#, e.g. var x = […]...
|
-
Data is not only the core of any business but also a significant asset for all users. Important files -like critical work documents or personal photos- deserve a great backup strategy for their protection against unexpected hardware failure or plain accidental deletion. In the recent release of DSM 6.0, Synology introduced a tool, called Hyper Backup, which provides a multi-version backup and minimizes the......
|
|
|
|