Convert #JSON Object from #AngularJS to a Class Instance in #WebApi

angular-webapi-wide

Last Tuesday I had a challenging task. Pass a range of dates from AngularJS to WebApi as a single value, and more importantly, the value must be converted as a class instance. It might be simple for some of you but if you are under a bit of stress, it’s not. At first nothing was passing but don’t despair, I found a cure solution. First of all make sure that the Class fields are all objects (Not strings! Strings don’t work. That was the first mistake). Continue reading

Breaking news for Pirates & Windows Phone Developers! #Microsoft #Windows10

abstract%20white%20digital%20art%20windows%208%20microsoft%20windows%20grey%20background_www_wall321_com_10

We are upgrading all qualified PCs, genuine and non-genuine, to Windows 10,” he said in a telephone interview with Reuters. The plan is to “re-engage” with the hundreds of millions of users of Windows in China, he said, without elaboration.

Continue reading

Improve Website Performance with Lowercase URLs #SEO

lowercase url-2-wide

At work we are always seeking how to make our websites use fewer resources and perform better. One of the performance increase was found by having Lowercase URLs. From the testing done, it resulted that Lowercase URLs make an average performance improvement of 10%. A big improvement with minimal effort.

How do you make sure that all the URLs are in lowercase? In MVC ASP.Net, you just need to add 1 line of code.

Continue reading

Convert Enum to KeyValuePair List and remove unwanted Enum options #Linq

150303-Enum-To-List-FLAT

In our new project, using Angular, I needed to fill drop down lists in a form from a set of enums. One particular case was to set the below Status Enum as a drop down list.

    public enum Status
    {
        Deactive = 1,
        Active = 2,
        Expired = 3,
        Deleted = 4,
    }

To do that, the best solution I found was to convert the enums to a list KeyValuePair items. How do you do that? Continue reading

How to set a Default Time when Selecting a Date // AngularJS

angular-date

So I started working with AngularJS a few weeks ago to work on an internal project at my workplace. One of the features needed was to make a date range where the user can select a start date and an end date. The requirements also stated that the default time for the start date should be at 00:01 and the default time on the end date should be 23:59.

For the date range I used the bs-datepicker attribute from angular-strap – this library has all the bootstrap elements packaged for angular – and it works great. How did I solve my problem? Continue reading

Get 100GB OneDrive storage for Free!

OneDrive-Logo

Microsoft has a promotion with Bing Rewards and OneDrive that gives away 100GB of free OneDrive storage but was only limited to USA citizens. That has now changed.. and this promotion is now open to anyone in the world. So what are you waiting for? Visit this link and follow the steps to get your 100GB in your OneDrive account. Let me know in the comments if you managed to do it :)

Continue reading

Quicky // Cannot empty deleted items folder in Outlook

outlook-icon

A quick post, which you will find useful if you have the same issue with Office 365 and Outlook, though it can also be applied to Exchange as well.

It’s been weeks that I’ve tried to empty my Deleted Items folder in Outlook and every time it shows the following error: Continue reading

How to install iOS and Android SDKs for Visual Studio 2013 Premium & Ultimate

Untitled 3

I was going to install Visual Studio Community 2013, but it asked me to uninstall Visual Studio 2013. I started checking some demos about Visual Studio Community 2013 (you can check the demo from Channel 9) and noticed that you can install the same tools as in Visual Studio Community 2013 to Visual Studio 2013. So let’s get started.

Continue reading

Updated – A FREE fully-featured edition of Visual Studio!

361

Among yesterday’s great product launches by Microsoft, was the FREE unrestricted version of Visual Studio – Visual Studio Community Edition 2013. What I didn’t notice is that “this version lets developers target any platform from desktop and mobile to web and cloud”. Instead of waiting for Visual Studio 2015, we can start creating Android and iOS applications as from today!

Continue reading

Create iOS and Android apps using Visual Studio and .NET

IC764760

Microsoft today announced some amazing news:

First the big news. Microsoft just launched the preview versions of Visual Studio 2015 and .NET 2015. This release includes the “Roslyn” .NET compiler platform, new language features in C#, improved debugging and profiling, and code analysis tools. And the biggest new of all – VS2015 supports “C#, C++ and HTML/JavaScript development targeting iOS, Android, Windows and more.” There’s even a Visual Studio Emulator for Android (see picture below).  I’m drooling! Continue reading