Thursday, December 11, 2014

Forcing AngularJS Apps to work in IE8


Official Angular JS Doc - Not Very Helpful (Disavows Support for IE8)
https://docs.angularjs.org/guide/ie

  1. Use ng-style tags instead of style="{{ someCss }}". The latter works in Chrome and Firefox but does not work in Internet Explorer <= 11 (the most recent version at time of writing).



HTML5 Cross Browser Polyfills
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills


How to make your AngularJS app work in IE 8
http://blog-it.hypoport.de/2013/08/24/how-to-make-your-angularjs-app-work-in-ie-8/


Modernizr
http://modernizr.com/

Respond.js


normalize.css
https://github.com/necolas/normalize.css


Caching of AJAX Calls


1. need to explicitly set header to prevent browser-caching


Set the http response header ‘cache-control':’no-cache’ for every http Ajax response. That’s all what you need for IE 8,9,10. And of course it doesn’t hurt Chrome/Firefox, because that’s their default behaviour.


$.ajaxSetup({
    cache: false
});

Rendering of Place-Holders
http://jamesallardice.github.io/Placeholders.js/



Browser-Specific CSS Hacks
http://www.paulirish.com/2009/browser-specific-css-hacks/


Limits on Style Sheets in IE
http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/10164546.aspx




Monday, December 8, 2014

GIT Related


Merge vs. Rebase
http://stackoverflow.com/questions/457927/git-workflow-and-rebase-vs-merge-questions

Git push rejected after feature branch rebase
http://stackoverflow.com/questions/8939977/git-push-rejected-after-feature-branch-rebase



Tricks to Help Navigate the C# DBML NightMare

How to Update/Refresh the DBML
How to Find a Specific Table in the DBML



Friday, October 24, 2014

SQL Server - Stored Proc Skeleton


USE [collateral]
GO

if exists(select * from sys.objects where Name = 'sproc_name' and type = 'P')
 drop procedure sproc_name 
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE sproc_name 
 @intParam int
AS
BEGIN
 SET NOCOUNT ON;

 begin transaction [txn]

 begin try

  -- sproc sql here

 commit transaction [txn]

 end try
 begin catch
  rollback transaction [txn]
 end catch

END
GO

Thursday, October 23, 2014

MS SQL Server - Query Results - to Text versus to Grid

MS SQL Server ShortCut Keys

Output results in a grid:  Ctrl+Shift+D (2014) or Ctrl+D (2008R2)
Output results in text:  Ctrl+T (2014, 2008R2)
 .

Saturday, June 21, 2014

uBuntu 14.04

Excellent Post-Installation Supplementary Actions Guide
http://www.unixmen.com/top-things-installing-ubuntu-14-0413-1013-0412-1012-04/

Saturday, January 18, 2014

Unity Desktop Shortcuts / Icons

sudo apt-get install gnome-panel
gnome-desktop-item-edit Desktop --create-new