Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to February 2016 Entries
SqlDependency Notification database Options troubleshooting
For SQL notifications we followed the steps described in http://dimarzionist.wordpre... it didn't work for our database. The instructions missed a step to ensure that database options are set for SqlDependency NotificationI've created a function to Follow recommendation to always check the notification source, info and type, it returned SqlNotificationEventArgs, Type : Subscribe, Source : Statement, Info : Options //TODO: pass SQL string ......

Posted On Friday, February 19, 2016 10:08 PM

Links for RazorEngine development.
We are using RazorEngine to generate emails based on .cshtml templates. Below are a few links that I used when develop it ......

Posted On Friday, February 19, 2016 9:45 PM

How to set iOS Pocket to open in Web View.
I prefer to open pages in Web View, because Article View often doesn't show text (in particular source code) properly.However option "Open Best View" usually opens Article View and I needed to change it manually.Pocket support provided me with solution To force the app to open all the articles in web view in your iPad you can follow these steps:Tap the Profile optionTap Settings, in the top right cornerUnder the headline Offline Downloading, disable “Download Best View”, “Always Fetch Article”Enable ......

Posted On Friday, February 19, 2016 9:38 PM

Insert new line in multiple xml files using Visual Studio
I needed to insert new line after existing one in multiple similar xml files.In Visual Studio open "replace in files" dialog and tick "use regular expression"In "find" escape "/" as "\/" <param name="ExistingKey" value="False" \/>In "Replace" repeat original string, then add \n and add a new string <param name="ExistingKey" value="False" />\n <param name="NewKey" value="new value" />Related links:http://stackoverflow.... ......

Posted On Friday, February 19, 2016 9:12 PM

Apple to create Feedback Forum.
Recently I've submitted a few suggestions to iTunes support forum. But I was informed, that for suggestions I have to use form. I feel slightly uncomfortable, that I can't check later, what I submitted. So I proposed to Apple to create Feedback Forum. It will be good to have a forum for feedback similar to what you have for support. 1.It will allow me as a customer to check what I suggested and edit/append new considerations. 2.It will allow othe customers ......

Posted On Friday, February 19, 2016 7:33 AM

Case insensitive StringHelper.EnsureEndsWith
I've created an extension method for string public static string EnsureEndsWith(this string str,string sEndValue,bool ignoreCase=true) { if (!str.EndsWith(sEndValue, ignoreCase, CultureInfo.InvariantCulture)) { str = str + sEndValue; } return str; }By some reason content of the post is not shown ......

Posted On Wednesday, February 17, 2016 10:51 PM

ScrollToControl helper method for ASP.Net web forms to move position to particular control
I've created a helper method for ASP.Net web forms to move position to particular control /// <summary> /// /// </summary> /// <param name="page"></param> /// <param name="clientId"></par... /// <param name="alignToTop"></p... public static void ScrollToControl( Page page, string clientId, bool alignToTop) { //NOTE: if there are more than one call on the page, first one will take preference //If we want that last will take preference, change key from ......

Posted On Wednesday, February 17, 2016 9:36 PM

Stash, Pull, Stash Apply as one git command
I noticed that I often do the same sequence of git commands.UPDATE: dox suggested simpler alternative to use aliasesrun notepad ~/.gitconfigand add[alias]spa = !git stash && git pull && git stash applyThen executegit spaWith a help of an answer created .bashrc with commandnotepad ~/.bashrcand added the followingStashPullApply() {git stash git pull git stash apply}Now I can use just the name in git bash StashPullApply ......

Posted On Wednesday, February 17, 2016 9:27 PM

Powershell ISE missing features
I've recently did some work with PowerShell ISE and missed a few features,that I wish to have in the ISE.1.It will be good to Stop debugger(Shift-F5) icon on toolbar2.In the popup----------------------... PowerShell ISE------------------------... cannot edit any script files in Windows PowerShell ISE while the debugger is running. To edit a script, stop the debugger.------------------... ---------------------------it will be good to add button to stop debugger.When stopped at ......

Posted On Saturday, February 6, 2016 10:08 AM

Copyright © Michael Freidgeim | Powered by: