SSL_ERROR_BAD_CERT_DOMAIN

SSL certificate is valid only for website without www I set my site with SSL certificate. It is on posidonia.ga but if I connect then Firefox shows this warning: “”Websites guarantee their identity through certificates. Firefox does not consider this site reliable as it uses a certificate that is not valid for www.posidonia.ga. The certificate … Read more

Python Array Rotation

So I am implementing a block swap algorithm in python. The algorithm I am following is this: Initialize A = arr[0..d-1] and B = arr[d..n-1] 1) Do following until size of A is equal to size of B a) If A is shorter, divide B into Bl and Br such that Br is of same … Read more

What is the function of FormulaR1C1?

FormulaR1C1 has the same behavior as Formula, only using R1C1 style annotation, instead of A1 annotation. In A1 annotation you would use: In R1C1 you would use: It doesn’t act upon row 1 column 1, it acts upon the targeted cell or range. Column 1 is the same as column A, so R4C1 is the … Read more

How to unzip a file in Powershell?

Here is a simple way using ExtractToDirectory from System.IO.Compression.ZipFile: Note that if the target folder doesn’t exist, ExtractToDirectory will create it. Other caveats: Existing files will not be overwritten and instead trigger an IOException. This method requires at least .NET Framework 4.5, available for Windows Vista and newer. Relative paths are not resolved based on the current working … Read more

Django – no such table exception

I solved the same problem with these steps : Delete your database (db.sqlite3 in my case) in your project directory Remove everything from __pycache__ folder under your project subdirectory For the application you are trying to fix, go to the folder and clear migrations and __pycache__ directories When you are sure you have cleared all the above files, run: I hope this … Read more

What fonts can I use with pygame.font.Font?

I thought that pygame.font.Font was to load .ttf fonts, and that you can’t load a font without having the .ttf file in the same directory, but I have seen a video where someone load a font without having the .ttf font in the same directory. I want to know what fonts can I use with … Read more