153 views

Ionic 2 Frame work, javascript

Comments Off on Ionic is not recognized as internal or external command

Ionic is not recognized as internal or external command

Ionic framework rocks, I am new to it and it’s fun. I am working with VS 2015 community version to make my First mobile App. I started with Ionic 2 beta version but as Ionic team are releasing new version I am following them. They changed project structure in RC version of ionic 2 framework. […]

130 views

Angular js, Ionic 2 Frame work, javascript, programming

Comments Off on Ionic 2 Cr + angular 2 + type script VS Code to Visual studio 2015 Apache cordova

Ionic 2 Cr + angular 2 + type script VS Code to Visual studio 2015 Apache cordova

Recently I started to work on my app. Being use to of Visual studio 2015 I found Ionic 2 beta templates. Downloaded, installed, Ran project. It ran like a charm. These templates  installed beta.10 version of ionic. In RC version of Ionic project structure has been changed massively. I tried to update my project but […]

714 views

Asp.net, programming, Web development and design

Comments Off on Animate font awesome icons compatible to twitter bootstrap css

Animate font awesome icons compatible to twitter bootstrap css

You can using following CSS to animate font awesome icons compatible to twitter bootstrap. .btn-animated { min-width: 0 !important; padding-right: 45px !important; position: relative; } .btn-animated.animate-to-right i { line-height: 34px; min-width: 12px; position: absolute; right: 17px; top: 0; transition: right 0.2s ease-in-out 0s; z-index: 3; }   .btn-animated.animate-to-left i { line-height: 34px; min-width: 12px; position: […]

1,146 views

ASP.net MVC

Comments Off on Office automation export Excel as pdf

Office automation export Excel as pdf

  private void saveBarButtonItem_ItemClick(object sender, ItemClickEventArgs e) { _pdfFilePath = Path.GetDirectoryName(_filePath) + "\\" + Path.GetFileNameWithoutExtension(_filePath) + ".pdf"; if (File.Exists(_pdfFilePath)) File.Delete(_pdfFilePath);   object pdfFilePath = _pdfFilePath; object oMissing = Missing.Value; object fileFormat = Excel.XlFileFormat.xlOpenXMLWorkbook; _excelDocument.ExportAsFixedFormat(Excel.XlFixedFormatType.xlTypePDF, pdfFilePath, Excel.XlFixedFormatQuality.xlQualityStandard, true, true, 1, 10, false); PdfFilePath = PdfFilePath; _excelDocument.Close(oMissing, oMissing, oMissing); releaseObject(_excelDocument); DialogResult = DialogResult.OK; }   private void […]

1,371 views

Angular js, javascript

Comments Off on angular js directive for decimal number

angular js directive for decimal number

Here you find a directive for angular js. input will be a valid decimal number. It will prompt your for spaces too.   app.directive(’validNumberdecimal’, function () { return { require: ‘ngModel’, link: function (scope, el, attrs, ngModel) { el.bind(’change’, function () { scope.$apply(function () { ngModel.$setViewValue(el.val()); ngModel.$render();   var number = el[0].value;   var re […]

2,409 views

Have Your Say, Internet stuff

Comments Off on twitter bootstrap list of changes made from version 2 in version 3

twitter bootstrap list of changes made from version 2 in version 3

I used twitter bootstrap in my websites and wanted to migrate from version 2 to version 3. I had a CSS class “.hereo-unit” which is now called “.jumbotron”. Find a quick list of alternate classes in version 3 below. Bootstrap 2.x Bootstrap 3.0 .container-fluid .container .row-fluid .row .span* .col-md-* .offset* .col-md-offset-* .brand .navbar-brand .nav-collapse .navbar-collapse […]

2,955 views

BDD, programming

Comments Off on Using Moq in Mspec, Test failed with message ” the signature is incorrect”

Using Moq in Mspec, Test failed with message ” the signature is incorrect”

I had a shared model layer in my solution.  I had only one web service which was implementing number of interfaces. Among those all operations in the interfaces One of the operation or function signature was using the shared model domain. I  wrote at least 12 tests all were pass but when I wrote test […]

5,346 views

programming

{1}

BDD – MVC – Account Controller using Dependency Injection/ MSpec/ Moq – part 1

After completing my installation I started playing with MSpec. I googled to see how people are using MSpec and what I can get from MSpec for my project. My First Test was as following: [Subject(typeof(AccountController)), Tags("Login")] public class When_Logging_Into_the_application_with_an_invalid_user_name_or_password : AccountControllerContext { //Arrange private static ViewResult _result; private static LoginModel _model; private static string _loginFailureMessage […]

2,541 views

ASP.net MVC, BDD

Comments Off on My first day to start Behaviour Driven Development (BDD) with MSpec and MVC.

My first day to start Behaviour Driven Development (BDD) with MSpec and MVC.

My first day to start Behaviour Driven Development (BDD) with MSpec. After discussion within development we decided to go for Machine.Specifications (or MSpec for short) I used NuGet Package to install MSpec and I searched with word mspec but found nothing then searched with word Machine and found the mspec package (Machine.Specifications). I installed it. […]

5,688 views

ASP.net MVC

Comments Off on Asp.net mvc combine url dynamically c#

Asp.net mvc combine url dynamically c#

I was working to send a password re-set email to user and wanted to to create a URL dynamically i.e It should be including the http or https and wwww and domain name and application name and then the URL defined by my self. I created as follow which seems very clean way to do […]