January 13 2019, 23:52

Update on Hybrismart.com: a story about the integration of SAP Commerce Cloud and Sitecore. It is based on our development – an integration module for these two systems, and our implementation experience at General Electric. It should be useful to everyone interested in headless commerce and using Sitecore as a content management system and SAP Commerce Cloud as an e-commerce platform.

https://hybrismart.com/2019/01/11/combining-sitecore-commerceconnect-sap-commerce/

January 11 2019, 02:05

Excellent little problem for an interview. Answer the question “why”

Mac OS calc shows 1e-27, while Google’s calculator shows zero, and in java System.out.println((4195835/3145727)*3145727-4195835) outputs “-1050108”, but after a simple change, it outputs the correct zero.

And another for bedtime. How much will Python output in response to “print(0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1)”? And Java? System.out.println(0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1);

January 09 2019, 01:19

Published a new article on hybrismart about site search and autocomplete/autosuggest/autocorrection patterns. Not much about hybris there, it’s generally about organizing site search. What to do and what not to do.

Request – if I missed anything (like some rare edge cases), please let me know, I will add it.

“Autocomplete, Live Search Suggestions, and Autocorrection: Best Practice Design Patterns”

https://hybrismart.com/2019/01/08/autocomplete-live-search-suggestions-autocorrection-best-practice-design-patterns/

January 08 2019, 01:52

I encountered two sets of very similar words, which are overall useful to know. In the States, almost the full set from each group is used.

To choose the right word for rain in English, you probably need to measure the diameter of the droplet. If they are small, such rain is called drizzle; if larger – then rain. Then you need to measure the speed. If it pours heavily – then it’s a downpour or shower (although this might be a bit lighter). If very heavy and prolonged – then it is a deluge. If the rain evaporated before reaching the ground, this is virga. And all of this is called precipitation in general.

They constantly talk about rain on the radio. And here are all these words.

I was also amazed that there are a bunch of words for clothing too, and there’s a lot of confusion until you figure it out. There’s garment, there’s apparel, there’s clothing, there are clothes, there’s attire, there’s wear, and there’s also outfit. Well, and garb too.

Garment – is a piece of clothing. Apparel includes decorations, bags, and shoes, and sounds slightly academic, while clothing is just apparel, and attire are specific pieces of apparel, such as work attire – work clothes, and a more formal way to say clothing. Clothing and clothes are the same thing. Wear is a commercial term for “clothes”. Outfit translates as “outfit for the occasion”. And for the pile, there’s also the word garb – used for clothing of a specific purpose, such as for hunters, clergy, or prisoners.

By the way, about specific clothes, I’ll write here too: Costume – for example, for Halloween. Suit – a suit in Russian. Dress – a women’s dress. Dress suit – evening/business suit (male or female).

January 05 2019, 13:41

Why hasn’t anyone yet created a mobile browser icon that instantly opens the last site you loaded on desktop, or just a site from the current tab? Ideally, even at the same spot on the page if it’s long, and with filled-in forms, if they exist, using the same cookies, authorization, etc. And vice versa – you press a button in the browser, and the site from your mobile flies over to your computer. It’s relatively simple to do, isn’t it?