When a site is moved from HTTP to HTTPS which is already indexed by Google, we must add a new property for the HTTPS URL in Goolge search console. When Google tries to index the site and it finds HTTP URL indexed for the same page, it will mark the HTTPS pages as canonical. We should use “301 Moved Permanently” to tell Google that HTTP URLs are moved to HTTPS and Google should prefer HTTPS over HTTP. Here is a sample code to be used in an ASP.NET web application for 301 moved status
After configuring SSL for a website, we need to make sure all existing HTTP URLs are automatically redirected to the HTTPS. For this we need to add a redirect rule in our web.config file. Open your web.config file and add following code snippet under system.webServer tag (copy it before the closing system.webServer tag) Save web.config file and upload it to the server tp replace existing one.
Many web hosting providers support and automatically enable Let’s Encrypt and redirect http to https by default. GoDaddy does not yet support it but we can manually install and configure our sites on GoDaddy shared hosting to support SSL. This is done in two steps. In the first step, we need to generate certificates from a certificate authority (CA) and then in the second step, we need to download generated certificates and upload it to the GoDaddy servers and configure it there. Support for third-party SSLs on GoDaddy While generating SSL certificates for our domain, we will also need to verify domain ownership to CA. In order to verify domain ownership using HTTP verification, we will need to create appropriate files with specific text strings under “httpdocs/.well-known/pki-validation/” directory on our web server. We also need to make sure that those appropriate files are accessible in the directory. We will first[…]
Retreive a list of existing Conda environments using the command below Before an environment can be deleted, it should first be deactivated using the command below Finally delete the environment using the command below. ENV_NAME is name of the environment which is to be deleted. The –all flag is used for removing all packages installed in that environment.
If you have Python 3.11 installed on your system, you will get this error when running the webui.bat file for setting up the SadTalker since it does not yet support Python 3.11. The solution is to install previous version of Python (in my case I did Python 3.8 as specified in the dependecies section of cog.yaml which downloaded with the SadTalker code). We will use conda to create a virtual environment just for SadTalker and then use it from there. The first step is to make sure we have Anaconda installed on our system. If not then download and install it from here. Make sure to follow the steps here for downloading the SadTalker files. Launch Anaconda Powershell and run following command to create a new environment for older version of python. Now activate the environment Make sure to validate that it is using desired version of python by checking[…]
Prerequisites: Install ffmpeg on windows In order to install ffmpeg on windows go to https://ffmpeg.org/download.html Follow steps mentioned here is install ffmpeg on your system. https://www.wikihow.com/Install-FFmpeg-on-Windows Now go to SadTalker Github page https://github.com/OpenTalker/SadTalker Go the the dev branch and click on README.md Go to the Download Trained Models section and click on the higlighed link to go to the SadTalker v0.0.2 rc Release Note page Download first four assets and Source Code.zip file Unzip Source code.zip file to a folder. We are are going to extract it to SadTalker-0.0.2-rc folder. In this folder manually create “checkpoints” folder and copy four .tar and .safetensors files in it once those also get downloaded. Open command prompt and go to SadTalker directory. There you would find webui.bat file. Run this file in command prompt to finish the setup. This will take a while to download and setup all required packages the first time.[…]
In order to move windows from HDD to SSD without buying a paid tool, we can use “Macrium Reflect”. This tool has one month of trial period and the software is fully functional during the trial period with no limitation on any functionality whatsoever. Download and install “Macrium Reflect” from https://www.macrium.com/reflectfree Launch Marcium Reflect and select the windows drive which you want to move to the SSD Make sure to select System Partition as well. Now click on “Clone this disk” which will ask to select a target disk. Select the SSD and click next and then finish Finally a popup will be shown. Click ok to start the cloning process Once the process finishes, restart the computer, and go to boot section (click F1 or F12 when the computer boots depending upon which key works for your computer) and move your SSD up in the boot sequence to make[…]
Download and install Anaconda Download Deoldify code from github https://github.com/jantic/DeOldify Extract contents of the downloaded DeOldify code zip file to a folder. Download Completed Generator Weights file for Video from the DeOldify github page (834 MB size) In the root of DeOldify folder create a new folder named “models” and copy downloaded Completed Generator Weights file to this folder (ColorizeVideo_gen.pth) Now launch Anaconda Powershell and go to root of DeOldify folder. Now we need to run few commands in sequence. Run following command first which will take a while to finish Once above command finished, run the next command as following Now run the following command Note: In case you face issues with running jypyter command such as “cmdlet not found”, check the path of python library in the system PATH variable. Also, make sure jypyter is installed on your system. You can install jupyter using windows command prompt as[…]
In order to capture logs from an Android device, the first step is to download and install Android Studio on your computer. Once Android Studio has been downloaded and installed, launch it. You need to create a new project in the Android Studio. Select the most basic template while creating the project. Once the project is created, it will be opened as following Notice the “Logcat” tab at the bottom. This is where we will be seeing logs from our Android device. The next step is to connect the Android device with your computer. Before you connect your Android device with the computer, make sure to enable developer options on your mobile device. In order to enable developer options on your mobile device, you need to go to the settings on your mobile phone and go to the “About phone” screen. You will see the phone’s build number. Tap it[…]
A nice explanation has been given @https://ryanve.com/_php/airve/chromosome/request.php?request=lab/dimensions/ Test it out on your device by opening the URL belowdemo