Hi there! 👋 Thank you for visiting! Whatever you are looking for, I hope you will find it.
If you want to reach out, you can contact me anywhere you'd like. You can find my social media channels right above the main navigation.
If you want to say hi via email,
In this post, we’ll have an in-depth look at RxJS’s
distinctUntilChanged operator, it’s signature and what it does, it’s parameters
keySelector, and typical use cases for each of them and both of them.
Imagine in your app there’s a search input that triggers an http request on each keystroke as a user types in their query. As your userbase grows, search operations quickly become expensive due to the increased traffic to your server.
Demo and source code
If you want to pass additional parameters to an Angular service, what you are looking for is @Inject decorator. It helps you pass your parameters to the service through Angular’s dependency injection mechanism.
So I’ve been working with Akveo’s Nebular UI Kit for a while now and it’s been a real issue adding custom content to
While using the Twitter web app, I noticed it displays a
Try Again button for failed requests in different sections of the user interface. This allows the user retry each failed request without affecting the rest of the application, quite neat.
I used Laravel’s HTTP Client
retry() feature for the first time yesterday and was surprised it throws an exception on failure of all retries instead of returning the failure
Spent the last couple of hours trying to get this working. Here’s what finally worked:
Given the below form, how do we get any individual input’s value inside a Cypress test?
Say my homepage contains the below snippet, which allows a user to download vcard files. I’d like to make sure the file download links are valid and point to existing files.
I wanted to be able to check the platform my app is running on without importing Capacitor, thereby improving my web build’s bundle size. Capacitor already exposes the following methods for querying the current platform:
I wanted to test an interval was being respected which required me to add a seconds-based interval value to a Carbon date object.
Using Laravel Eloquent, I wanted to only get a specific property - the
id - from the first matching model of my query.
In my app, I have a promotion’s table which has a field called
phone_restrictions, which is an array of phone numbers a promotion is restricted to.
I wanted to return a translated date string from a Carbon date object and after some research, used the below solution which worked for me. It is quite brief, do leave a comment if you’ve got a question.
I’ve been working on coupon/promotion codes functionality and one requirement is only allowing the re-use of a coupon code after a period of time has passed. It could be a couple of hours, a couple of days, or a month at most.
Below is the validation language line we want to test, It’s found in
resources/lang/fr/validation.php my app supports just two languages at this time, English and French.
Below is the validation language line we want to test, I added it to the array in
Build command input field, enter
ng build --prod, and in the
Publish directory input field, enter
idle event is fired after the last frame rendered before the map enters an “idle” state. When this event is fired, we are sure of the following things:
- All currently requested tiles have loaded.
- No camera transitions are in progress.
- All fade/transition animations have completed.
If you don’t have
http-server installed, go ahead and install it globally.
I’ve been working on the PWA version of a mobile app and it was brought to my attention that when using the PWA offline, some icons that were placed in the
/src/assets directory fail to load.
Say we’re using Mapbox to render a map that contains a couple of icons representing places. When the map loads for the first time, no marker should be rendered.
ionic-image-loader is an Ionic 2+ component that loads images in a background thread and caches them for later use. It also makes available a service to manually preload images, which will be the focus of this post.
Imagine in your app there’s a page with a list of items, and clicking on an item navigates to and item details page. On the details page, you’d like to be able to swipe left to bring up the previous item, or right to bring up the next item. This post aims to provide an implementation for such functionality.