Warning: Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8 The solution is that instead of using the following signature: you need to use the following now:More
The best programming blog.
Covering a wide array of programming topics.
Add iPhone Hotspot to Macbook Wi-Fi Menu Automatically At Top
If your iPhone and Macbook are connected to the same Apple iCloud account, then iPhone’s hotspot Wi-Fi should automatically be showing up at the top of the Macbook’s Wi-Fi menu. This is a part of Apple’s Continuity and Handoff feature called Instant Hotspot and in case your iPhone hotspot doesn’t show up automatically in your…More
CloudFront url not expiring from cache
If you are having a url with querystring like this: and you want to expire the cache for that url in CloudFront distribution then the solution is to enter this url in the invalidations of your CloudFront distribution to expire the cache: This will expire the cache for all the versions of url with different…More
How to update Capacitor package to latest
Run the following command to to install the latest version of the Capacitor CLI to your project: After that, run the following command to execute the capacitor migrate command: You will get a prompt like this: Please select the default actions presented by the terminal, when the installation is done you will be presented with…More
Could not resolve dependency from capacitor/storage@1.2.5
Issue: While running npm i you are getting the following error: The @capacitor/storage plugin has been renamed to @capacitor/preferences to better reflect it’s usage. The API remains the same. You need to install preferences package: For usage you can following the following reference: https://capacitorjs.com/docs/apis/preferencesMore
CocoaPods could not find compatible versions for pod CordovaPlugins
While building iOS project in Ionic if you are getting the following issue: The solution is to go to ios/App/Podfile file in yoru Ionic project and update the iOS minimum supported version. Above, the minimum iOS version has been updated to platform :ios, ‘14.0’. After building the Ionic solution again for iOS project the error…More
Update all npm packages to latest
We will make use of npm-check-updates package to update all the npm packages to the latest version. Install the npm-check-updates package globally on your machine by running the following command: Go to your project and run the following command to check the outdated npm packages: The above command will give you the output like this:…More
Ubuntu there is no development version of an LTS available
While running the sudo do-release-upgrade command you are getting the following issue: The above warning could be because of the LTS version which you are about to update has still not released as first point release. You will have to check release plan from their official docs. Example: https://discourse.ubuntu.com/t/jammy-jellyfish-release-schedule/23906 Further, from https://ubuntu.com/server/docs/upgrade-introduction resource Upgrades from…More
How to check Ubuntu version on EC2
Run the following command to get the version of PHP installed on Ubuntu machine: The output should look like this: In the above result 20.04 is the version of Ubuntu installed on our EC2 instance.More
Ubuntu how to check hard disk size
Run the df -h command to get the availaible space in your system: The above command will give you the output like this: In the above output you can see that that disk size is around 8 GB. Run the lsblk command to list the information about all the available block devices on the disk:…More