How to find UDID of your iphone without installing any third party app on Mac M1 or Mac M2

 Ever wondered on how to check the UDID of your iphone without installing any third party app in a mac using Apple Silicon chip? Here are the steps you should follow: Connect your iphone with USB Open Apple Music app and you should see your device there Next, click on the iphone label and you should see the UDID

Resolved: Getting 404 on refresh in angular or react application

 PROBLEM: If you are working with a single page application (SPA) say an application built with Angular or React, you may get a 404 when you hit a refresh on a specific route and you host your application on Apache Server.

Solution

Simply add a .htaccess file in the root directory of your application or website and your problem should be solved

 

RewriteEngine on
#RewriteCond %{HTTPS} !on


RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

RewriteRule ^(.*) /index.html [NC,L]


# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}/index.html
# RewriteRule ^([^/]+)/?$ index.html [L]
# RewriteCond %{REQUEST_URI} !^/index.html$
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}\.(php|html)$ /index.html [L,R=302]