.Net Core – Entity Framework Migration and Sqlite

In previous post, I showed you how to implement a custom migration without using Entity Framework for Sqlite database in .Net core. In this post, I’ll use Entity Framework Migration to manage (upgrade / downgrade) our database structure. Both of approaches will work, you can choose one of 2 solutions as you prefer.

Continue reading .Net Core – Entity Framework Migration and Sqlite

DotNetCore – Sqlite with Entity Framework Code First and Migration

In last months there were 2 big frameworks for software development published: DotNetCore and Angular 2. They’re new and powerful. I’ve spent most of my free time to learn both of them. The combination of DotNetCore Web Api and Angular 2 give me a powerful development enviroment for building website or building web-view app (based on Apache Cordova). I’ve started to build some web apps with Angular 2 (for example YouTubeApp or my private dictionary EnDeVi). They are all my pet projects but it’s a good start for learning new stuffs. In this blog, I would like to write about DotNetCore and Sqlite like the previous post Sqlite with Entity Framework Code First and Migration. Basically there’s nothing new with this post, I just want to test how I can write a simple .NET core console connecting to Sqlite database.

Continue reading DotNetCore – Sqlite with Entity Framework Code First and Migration

Quick Start Angular 2 with ASP.NET 5

Angular 2 is now on beta and ASP.NET 5 is on RC version. Both of them are almost near to final release. Use these versions for big projects right now is not a quite right decision because they are still being changed a lot. However, we can begin to make some demo projects to get familiar with new syntax and project templates. In this post, I show you how to make your first app with Angular 2 and ASP.NET 5. This post is only about how to configure so that Angular 2 works with ASP.NET 5.

Continue reading Quick Start Angular 2 with ASP.NET 5

Project Oxford – Computer Vision API – OCR

I have introduced some candidates for OCR in the previous posts such as C# – OCR library candidates and C# – An example of OCR web service. Last year Microsoft published his new project for machine learning. The project is called Project Oxford. This project provides us the APIs for computer vision, face, emotion, video, speech, speaker recognition… The project is really interesting, you can learn more about it from its homepage. In this small post, I would like to illustrate how we can make a call to OCR service. OCR ist just a part of Computer Vision APIs.

Continue reading Project Oxford – Computer Vision API – OCR

iTextSharp – Frequently asked questions – Part 2

In previous part C#,iTextSharp – PDF file – Insert/extract image,text,font, text highlighting and auto fillin, I listed some code listings for typical features of iTextSharp in editing PDF files. That post just gets growing up and too long, therefore I would like to continue the work in this second one.

Continue reading iTextSharp – Frequently asked questions – Part 2

ASP.NET Web API – Identity and forgot password

In previous posts, we’ve got familiar with ASP.NET Web API and ASP.NET Identity. We can use ASP.NET Identity with multiple types of clients such as the desktop app, web app or mobile app for registering and authenticating users. The user will open an account with his email and password and then authenticate himself with services with registered info. If we don’t want to force user enter login data each time he accesses our services, we can get a token and use that token as the authentication key for any call to the server. Today I would like to extend our ASP.NET Web API with “Forgot Password” function so that user can reset his password in case he doesn’t remember it anymore.

Continue reading ASP.NET Web API – Identity and forgot password

How I use MiniALA to find web shell backdoor on my host?

I’m using a shared hosting service provided by Bluehost and have many websites on this account. Last month, November, my brother wrote me that he received a lot of traffic to his website although he didn’t update anything. He worried that maybe a web shell backdoor was injected into his website because he used some null-ed plugins and templates (My bro, please don’t use any null-ed components anymore, buy commercial components or use free ones instead). If his website got attacked, my blog will be also on target because we use same account for both websites. I decided to make a short analysis of Apache Access Log (AAL) to check if a web shell backdoor is installed on my shared hosting.

Continue reading How I use MiniALA to find web shell backdoor on my host?