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?

ASP.NET Web Api – Video (mp4/mjpeg/html) streaming inside self-host app with Owin/Katana

In previous posts for ASP.NET Web API, we’ve discussed how to get and post data to our REST web service. The service will be hosted then directly in IIS. Today I would like to make a small demo of ASP.NET Web API for streaming video in a self-host application. The self-host will be implemented by using Owin/Katana. Having this feature you can enable a web service embedded in your application and streaming data to any app connecting to your PC app.

Continue reading ASP.NET Web Api – Video (mp4/mjpeg/html) streaming inside self-host app with Owin/Katana

Universal App – Bing Map : Get current location, show pins and search near by

Years ago I wrote a post for using Bing Map in Windows Phone Windows Phone – Embedded fonts and Bing maps. Following a new trend with Universal App, this post shows how we can host a Bing Map control in Universal App and execute some actions such as show location, pins and search POIs near by.

Continue reading Universal App – Bing Map : Get current location, show pins and search near by

Universal app – Windows 10 Action Center Toast Notification

Action Center is a new feature of Windows 10. It’s a collapsible panel on the right of the monitor where the software can notify his user about his status. It works exactly same as the notification of apps in smartphone. User can click on the notification to go directly to the apps. In this blog spot I will make a short demo showing how we can display a notification in Action Center. The demo contains a very simple email client working with IMAP server and notifies the user how many unread emails there are in his inbox. This email client works as an universal app.

Continue reading Universal app – Windows 10 Action Center Toast Notification

AForge.Net – Similar images

AForge.NET is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence – image processing, neural networks, genetic algorithms, machine learning, robotics.

Years ago I wrote a small post using AForge.net for detecting motion and calculating average color AForge.Net – Examples for average color and motion detection. In this post I’ll use AForge.Net for calculating the similarity grad between 2 images.

Continue reading AForge.Net – Similar images

Entity Framework Code First Basic FAQ – Part 2

In previous post Entity Framework Code First Basic FAQ – Part 1, I discuss some frequently asked questions when I start working with Entity Framework Code First. This post will follow the spirit of the previous one, some interesting points of Entity Framework will be demonstrated in short code listings. In source code sample, you’ll find 2 projects, the project numbered with number 2 is for this post.

Continue reading Entity Framework Code First Basic FAQ – Part 2