I just thought sometimes simple extensions helps a lot. Like this Flip. public static string Flip(this string target, bool trimEnds) { if (trimEnds) target= target.TrimIfNotNull(); var len = target.Length; var newString = new string[len]; foreach (var c in target) { var temp = len; newString[temp – 1] = c.ToString(); len–; } return string.Join(string.Empty, newString); }…
Author: mhoque
Customizing Sitecore Upload Pipeline for both folder and database based Media
I wanted to upload documents to Sitecore Media library and at the time of upload, I would like to replace the metadata on the pdf file. Many of you probably have looked at this document for reference from Sitecore SDN. But that document has few problems. I will point those out as I write this…
Sitecore “Tracker.Current is not initialized ” issue
PROBLEM: Solution: Culprit is the MongoDB is not installed on your PC. Go through your config and disable connections to it. If you have MongoDB installed, make sure it is running and your connectionstring is correct. Steps: You have 2 Options to fix it. You can Install MongoDB and point your instance to it. …
How to elegantly handle a local datetime and UTC datetime
I have been working with a client that has a Hybrid environment. They have Azure tables, but their API is on prem and their internal Sql Server. To keep the data sync there is a WebJob that is running every 5 minutes and syncing on prem data with Azure tables. Problem they faced is the…
Working Visual Studio 2017, Sitecore 8.x and Sitecore Rocks
I am setting up a Sitecore Environment for a Project with Sitecore 8.2 and Sitecore rocks to work with Sitecore connection from visual studio. Since I have accidentally deleted my vmx file when working late on one of my VM. I though it would be fun to see what issues I face if I set…
Sitecore version reference image
I kept on forgetting what version of Sitecore offered what features. Once you work with something for awhile and keep on moving up the versions a lot of the time you lose track of what changes in what time. This image I got from Kiran’s site is useful. Hopefully you find it useful too.
Issues with Visual Studio 2017 and Git repo setup
Between me and my co-worker we were setting up a git repo. Nothing fancy (yet) just a git repo to check in code, checkout , branch etc. My coworker kept on getting this “resource cannot be null: source” error message. When I am connecting to the same repo from my dev environment, I have no…
Free Microsoft Book Giveaway
If you are looking for resources to learn Microsoft technologies and looking for book, before you go out and buy something take advantage of this Free Microsoft giveaway. These are full books and you can even use the powershell script to download all of them at the same time. These are not time bombed books….
Solved: SSIS error “cannot convert between unicode and non-unicode string”
This is an issue that happens when you have mismatch of type between a Source and Destination table item type. You should look at the data type in the table for both Source and Destination. You probable have one of these field as nvarchar. If it needs to be nvarchar, that’s fine. If not, simplest…
Solved: Where is the Package Configuration for SSIS in Visual Studio 2015
I was working with SSIS package and after using the global parameters, I wanted to create an XML or config file to use with the package. I am using the Visual Studio 2015 and looking for the starting point from this article. http://vyaskn.tripod.com/sql_server_2005_making_ssis_packages_portable.htm But can’t seem to find the first item “package configuration†option from…