Serialization For Fun & Profit (A simple WinRT app for Windows Phone)

Hello geeks, in my previous post I showed you how easily you can scrape xml podcasts feeds with Javascript and JQuery and make a simple windows phone application. In this post I’m going to scrape the same xml feeds but will use dot net (.net) xml serialization. And yes we are going to make a Windows phone app again but this time it is a WinRT app. What I’m going to show you now, you can achieve the same thing in a hundreds of millions ways. However I…

Keep reading

A Simple Podcast App For Windows Phone (HTML & Javascript)

Okay geeks, I’m back again to share some tricks with you. So in this post I’m going to show you how you can scrape some xml podcasts feeds and make a simple windows phone app with those data. Don’t worry if you are not a windows phone guy. It’s just some JavaScript and Html, so you can also apply it in whatever platforms that support JavaScript and Html which I think every single one does. Okay ‘nuff said, let’s begin You can find a huge…

Keep reading

Seeding Data into Azure Mobile Services

Okay, Geeks! I'm writing this post for two reasons. Number one is to get you up and running with Azure Command Line Interface (CLI). And two is to show you how you can seed testing data for your Azure Mobile Service apps. So lets get started, I'm gonna make a simple nodejs application for this demo. If you are a .Net developer, don't worry! just carry along. Once you get the concept, you can also apply it to your .Net applications First, let me fire up Visual Studio and create…

Keep reading

Fun with jQWidgets (jqxTreeGrid)

Introduction So I’ve been working on this project lately, where my teammate asked me to write an advance TreeView with JQuery. The sample data and the TreeView structure were something like this: Sample Data Name Phone CurrentBalance UserType UserCode ParentCode Hakeem 076 4876 6579 6,026 Administrator AD-00001 NULL Lucian 055 9658 5713 9,741 Branch BR-00001 AD-00001 Felix 076 2291 6071 8,852 Distributor DR-00001 BR-00001 Aquila 056 5580 0460 9,095 Agent AG-00001 DR-00001 Tyrone 0916 103 0684 5,822 User UR-00001 AG-00001 TreeView Structure  …

Keep reading

Make Your Coding Life Easy with Providers! (Angular.js Providers)

Introduction If you are running wild with Angular.js, then you may know that you can implement business logic in your controllers and use them in different parts of your application just by calling them. But as we all know, too much code in one place is never a good idea. And it is considered to be a good habit not to write a whole amount of business logic in a controller because you may have to use those same logic again in another controller. So doing the same thing…

Keep reading

Up and Running with ASP.NET vNext

Introduction For so long now, you have been working on OSX and UNIX, but want to taste some Microsoft’s cutting edged technologies. By which I mean you want to end up writing some code in C#. Now the burning question is, how am I going to even write C# code without Visual Studio? And moreover, my OS doesn’t support running Microsoft’s products. Well! You don’t have to whine anymore because I’ve got good news for you. If you attended the…

Keep reading

Alarming Delegates (Advanced)

So here goes a post about c# delegates, which is considered to be one of the hardest concept in C#. So I've decided to show you a simple example which I guess will clear the concept of delegates for you. Delegates are like function pointers in C++ and and broadly used as a callback function. Functions can be encapsulated using delegates. As you already know that C# is an event based programming language, you will be happy to know that behind the scene all events are basically delegates. So sooner…

Keep reading

Make Your Code Modular Buddy! (Angular.js Modules)

Unlike the Hello World Program, in real life an enterprise level application gets bigger and bigger day by day as the client's requirements flown in from here and there. Managing these kind of applications are easy when some heavyweight enterprise languages like C#, Java etc. are there for you. These heavyweight languages provides some features, where a client side language like JavaScript often lakes. Features like Class and Namespace are absent in JavaScript. But since every problem has a solution, with the help of JavaScript functions we can have both…

Keep reading

Control Your App’s Behavior (Angular.js Controllers)

In our previous Hello World example we simply defined a model [i.e. data.message] in our ng-model directive then we set some value on it and at the same time get the value from it. But how about we pass a predefined message to show at start up. Let me clarify what I'm saying. Let's modify our Hello World Program to look like this, <!DOCTYPE html> <html lang="en" ng-app> <head> <meta charset="UTF-8"> <title>Angular Controller</title&…

Keep reading

Hello from Angular (Angular.js Data Binding)

[If you are finding it difficult to grasp on what I wrote so far, don't worry! Stick with me. I will take baby steps to make you familiar with Angular.js and after seeing some simple examples, you will understand what I'm trying to achieve here with Angular.js] So let's see what we've got as our first example. If I’m right, when I said our first example. You are thinking like, "No!!! Not the hello world again!!!!" Actually you are right it's our very old friend Hello World…

Keep reading

What and Why’s of Angular.js

What is Angular.js Today I’m going to talk about a very popular client side web application framework called Angular.js. With the initial release in 2009 this super heroic JavaScript framework is still getting developed by the Google community and offering some mind-blowing features which developers wanted for so long. Built with only JavaScript this framework offers us to implement MV* (Model-View-Whatever) in our web application development to overcome development and testability overheads. Why Angular.js To take total advantage of a framework, first we must know why…

Keep reading

3D’s of Angular.js

Data Binding One of the core feature you will want in every presentation or client side development framework is data binding. Unlike any other frameworks angular provides two way data binding. In angular all you will have to do is to connect the view to a model. And you are done! Later in your application if the model changes the view get changed and if the view changes the model get changed. This feature was so much needed because before that developers have to write additional codes to update the…

Keep reading

A security capsule can save your program’s life (Part.3)

So, let me show how easy it is to implement encapsulation in C#. I will start from the very old fashion to create a encapsulated field then will show the easiest way. Basically to encapsulate a field level variable we would simply declare a setter and a getter method. With the help of the setter method we would set a value for our field level variable and with the getter method we would extract the value from our field level variable set by the setter method. So open the project…

Keep reading

A security capsule can save your program’s life (Part.2)

In the previous post we have created an application. But there was a little bug in our program. Let’s find the bug. How about we run the program once again? And this time we provide the TextBoxes with some information and uncheck the Private CheckBox to see the mobile number of the user and click submit. Oops!!! It is still “N/A” in the ListView’s mobile column but it was not what we expected, Right!!! Cause we unchecked the Private CheckBox in the form. So what was the…

Keep reading

A security capsule can save your program’s life (Part.1)

We are now familiar with the definition of encapsulation but we yet don’t know how to implement it in our code to prevent any kind of Misuse and Bugs in our code. Let me give an example. I think everyone knows what Facebook is. In Facebook, when we create an account we provide different kind of information, so that another Facebook user can know a little bit about us before connecting with us. When a user successfully creates an account, Facebook community hides your phone number (one of additional…

Keep reading