The best programming blog.

Covering a wide array of programming topics.

Cron to run job 2 AM daily

With Cron, you can program tasks (sometimes referred to as “cron jobs”) to execute automatically at predetermined intervals. Cron determines which commands to run based on the tasks you have configured to run. Here is the Cron expression to run a job at 2 AM daily Explanation of the crown expression: There are five fields…More

Angular Usage of ‘~’ in imports is deprecated

In Angular Ionic project if you are getting the following warning The solution is to remove all the starting ~ tild in the imports of all your scss files. Example: Old: Updated one: The Usage of ‘~’ in imports is deprecated warning will be fixed on next build.More

Cordova Screen orientation lock not working iOS 16

After moving from iOS 15 to iOS 16 the cordova screen orientation lock api stopped working. Plugin: https://github.com/apache/cordova-plugin-screen-orientation The reason for this issue is that the following line on that plugin no longer works in iOS 16 This has been reported here also: https://developer.apple.com/forums/thread/707735 The temporary fix (until Cordova team fixes this issue) will be…More

The ASP.NET Core developer certificate is in an invalid state

While running dotnet run command you are getting the issue: The solution is to execute these commands on your machine: Accept all the prompts: Add the following code in your project file: Restart the machine and run dotnet run command again, your issue will be fixed now.More

dotnet core ERR_SSL_VERSION_OR_CIPHER_MISMATCH

If you are getting ERR_SSL_VERSION_OR_CIPHER_MISMATCH when accessing ASP.NET web api project then you need to run the following commands on your machine: Ther terminal will prompt multiple prompts like this: Click Always Allow for all prompts. Restart the machine. The ERR_SSL_VERSION_OR_CIPHER_MISMATCH issue should be fixed now.More

Xcode download iOS 15 simulator

Go to Xcode preferences. Click Platforms tab. Click the plus icon: Select iOS from, the menu and click iOS 15 simulator from the simulators list: It will take few minutes to download. Restart the Xcode and you will see the iOS 15 simulator in device list.More

Xcode The run destination iPhone is not valid

Error: While running the app on iPhone via Xcode you are getting the following error: The run destination .. iPhone is not valid for Running the scheme ‘App’. The solution is to turn the developer mode on and then restart the device. After restart it will ask for the Turn On Developer Mode prompt: Click…More