Category Archives:

Microsoft platform and web development

Microsoft, without doubt is the biggest and one of the best platform for enterprise developers . These were even more so compare to java . Visual Basic took the world by storm and everyone under the sun started writing one and have heard about the goodness, then came NGWS later became .net, seriously nobody could write a better language than c# team did. But the advent of mobile and better browser supports means a lot of Microsoft development shop spending their time and effort on building up and front end , and those who adopted basic of the web) were all the rage with server controls and event, I was there, preaching about the goodness… Until one day.. And it happened to a lot people .. Ajax… JavaScript, why do we have to do everything on the server,…. And the classic case was there was this team of developers who claims … They are the new generation of web developers, know not a single line of HTML and JavaScript other alert. Oh well .. When jQuery was released to the world… They were all still sleeping and think it was some kind of stupid.. Php, un-object oriented, uncool stuff.

What they don’t realized or they just ignoring them is the fact that JavaScript is no longer , something that you slap in at the end of the day just to make that bit or this bit a little nicer, people have been developing in JavaScript from end to end, and they are still pre-occupied with,  “One”… who cares(well may be those VB6 programmers who just heard about Entity framework and Web API are among the few things I will never allow my team to ever touch or learn, WHY would I need somebody to write me code that we don’t understand. EF makes it harder to apply SOLID principals in every way.

For the rest of us, we at Bespoke have been for at least 5/6 years , never have to do anything server control or Html.LabelFor or Html.EditorFor.. any more, if we want a label then we will write <label> this is my label</label>.


With the announcement of internet explorer 11, Microsoft finally has something to o against Chrome DevTools and FireBug except..

  • it’s too late – see what happen to Windows Phone
  • it doesn’t work everywhere  – it’s not like Chrome or Firebug

Is it really important, for the F12 to work every where, every one has their own opinion, but  in Microsoft case, they only care about their latest OS. If they intend to get really serious about winning developers mind and hard they get work harder.

I personally believed that a good developers tools should no be bundled from the main branch of the browser, what they should do is have a developer edition of the browser that come with very powerful tools for developers. May be based on Visual Studio shell, heck who cares if its 500MB, it’s only meant for developers and they won’t install it on their iPad/ table anyway.

These are the list of features they should have.

  • It’s completely blind to the server technology
  • Support for TypeScript debugging, (the only reason I write JavaScripts instead of TypeScript is debugging in codes that you don’t write is stupid)
  • Having workspaces and assets and version control built in(do a local Git repository) allowing us to do branching and experiment
  • Lots of override and emulation for touch, GelLocation , HTML5 platform and so forth

The closest i could get to this thing today is combination of Chrome DevTools and JetBrains WebStorm, with all the mock and requirejs, I hardly back in Visual Studio anymore.










ASP.Net Membership add user & role utility

How many time do find you can’t easily add new user to your application when deploying. It’s ironic that you have built an application with a complete user management features but can’t get it to work because you need to login the first time around to access the features.

Or may be you can’t be bothered to create one, just want to create a few roles or users. We all know that we can’t  make ASP.Net web admin tools to work on a remote site.

This utility is meant to add a new user or roles to your newly create aspnet identity database.

to use just compile the source with .Net 4.0. the use this command line switchers


To add new user

  • -u username
  • -p password
  • -e email
  • -r role (if you have more than 1 role for the user, do it multiple times)
  • -c the path to the configuration file, i.e. your web.config

To add new roles

  • -r roles
  • -c the web.config file

This work by creating a new appdomain, and loading the config file , since there’s no programmatic way to access the Membership features(or I just can’t find it). See the source for details. You can safely delete the app.config


Download the source here