Saturday, 25 June 2016

Tips and Trick for Developer for Google Chrome

From long time I wanted to consolidate my learning for google chrome; Attempted it to present in simple question-answer format to have it handy.

Can  I write multiple line command in chrome console?

 Shift + Enter allows you enter a multi-line mode in the console. This is useful when you want to write complete javascript function, etc.

Can I get the number of div element in DOM ?


Can I make DOM Editable ?

             document.body.contentEditable = true;

Can I convert my array into Tabular format ?

console.table([{a:1, b:2, c:3}, {a:"foo", b:false, c:undefined}]);
console.table([[1,2,3], [2,3,4]]);

Can I Inspect 5th element out of multiple selections of div.


Can I list out all the properties of given Object.?


Can I use xpath query to determine the dom Element ?

Why not ?

Tuesday, 21 June 2016

Sitecore User Group UAE (SUGUAE) Dubai

Sitecore User Group UAE is established to share knowledge and inspire Sitecore developers, architects, administrators, designers, business , marketers and managers to avail best offering from Sitecore.
We are a passionate team of MVP, developers, architects & strategic thinkers , digital marketer who are passionate about helping Sitecore community.
The mission of the Sitecore Users Group UAE (SUGUAE) is to foster a community of Sitecore enthusiasts in the UAE region by Innovatively and effectively conducting frequent meetup in UAE.

Stay tuned for details.

Sunday, 19 June 2016

Multiple Crawler for Sitecore Context Search

 One fine day last Thursday.We found the in Production Solr is not able to Initiate the one of the core.

It was throwing the below error.

Caused by: java.lang.OutOfMemoryError: Java heap space

We have done basic troubleshooting increasing the Java Heap Memory. Increasing the Server memory but seems it was a bad day.

Image result for is you have an issue here is tissue

 In real life meme don't work.

We were constantly being chased by client as Solr being down was impecting multiple features on CM and CD Server. Thanks to god we had one backup solr Server which we have used as fallback.

So business Happy now ..


But we still need to find why solr core is not getting loaded. We delete all the index data but no luck.

Then I saw the T_log folder is having ample of files. I have deleted all of them voila it worked.

Still the problem is not solved if someone will rebuild the Sitecore_master_index the issue will appear again why because the whole content tree getting Indexed.

Question is how??

Answer is we have defined the Sitecore Root as Root in the Sitecore Master Index.


So whenever we rebuild the Index its was time consuming and memory consuming operation

Image result for we did it meme
We have limited that by adding Multiple Crawler and defining the Root for all of them so Sitecore context search works absolutely fine.

      <locations hint="list:AddCrawler">
              <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
                <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">

Now we have light weight Solr Index which are getting rebuilt very quick.

So when we need to add some items to be Indexed. We can add a new Crawler adding the specific root for the same.

Happy Indexing.