Findings with sqlite and different versions of scout python search server

Sqlite has full text search support via modules fts3, fts4, fts5 By default all three are added in sqlite package, but fss5 is disabled as it is experimental. Scout uses Sqlite for search Scout 0.4.0 uses fts5 if available, else fallback to fts4. Scout 3.0.0 is fixed on fts4, even... »
Author's profile picture Rajat singla

Highlight link in side menu on scrolling to the part of the page to which that link belongs

We iterate over all parts of the page. For each part we calculate part.offset().top, which means y coordinate on page where element starts. If it is less than scrollTop. It means we have scrolled past this part of page and it is time to highlight it’s link. and we keep... »
Author's profile picture Rajat singla

How to create sticky left sidebar which sticks on scrolling

On scroll we call stickyMenu function, We check sidemenu’s ele.offset().top, which means y coordinate on page where element starts. And then we compare it with $(document).scrollTop(), if offset().top is less than scrollTop, then we have passed by sidemenu, so we add sticky class to make it fixed, otherwise we remove... »
Author's profile picture Rajat singla

Adding vertical parallax effect and overlay on banner image

Parallax scrolling is a web site trend where the background content (i.e. an image) is moved at a different speed than the foreground content while scrolling. Dimmed overlay with CSS, which give image a blackish effect, so text on it can be visible. css .parallax-container { overflow: hidden; background-color: #070504;... »
Author's profile picture Rajat singla

Clean way to handle scroll events in emberjs app without blocking task queue and runtime

Solving following two Problems:- Scroll events can fire at a high rate. So It is recommended to add callback once user stops scrolling. And another problem is multiple scroll listeners in your emberjs app here and there. Instead there should be an array of all scroll callbacks and a single... »
Author's profile picture Rajat singla

What is the meaning and use of left shift operator

« is the left shift operator, and meets the needs of both logical and arithmetic shifts. Left shift («) Integers are stored, in memory, as a series of bits. For example, the number 6 stored as a 32-bit int would be: 00000000 00000000 00000000 00000110 Shifting this bit pattern to the... »
Author's profile picture Rajat singla

Everything you need to learn about mobile first design starting from what is mobile first

While learning more about mobile first, it seemed to me that responsive design itself mean mobile first. In simple words, mobile first is adding media queries to expand the content, rather than adding media queries to shrink the content. There is already much written on mobile first( term originally coined... »
Author's profile picture Rajat singla

Emberjs achieve two way binding with native input tag and discard input helper

Input helper provided by emberjs is limited, to be actually useful in validation rich forms. Native input tag is way much more flexible than input helper, but problem with native input tag is two way value binding. In above example input tag will initially get its value from email property,... »
Author's profile picture Rajat singla

Ember js concatenate all third party js files present under vendor folder to vendor js

app.import('vendor/scripts/jquery_validation-1.17.0.min.js'); adding this file to ember-cli-build.js will add this file to vendor.js You can’t append all the files together by using something like app.import('vendor/scripts/*.js'); Because of the dependency of JS libraries on each other which file to be loaded first? So ember cli provides cleaner way to load i.e. the... »
Author's profile picture Rajat singla

Stakeholders agree to the requirement and then later on says this does not serve my purpose

Stakeholders have limited time. Bombarding them with information in less time can make them agree to whatever being said, which is clearly bad for long term. Instead we must follow rigorous and effective requirements engineering process. But how can we do that, how can we collect good requirements. Requirements gathering... »
Author's profile picture Rajat singla