Where are the ampersand and vertical bar characters used in Python?

The wikipedia page is wrong, I’ve corrected it. | and & are not boolean operators, even though they are eager operators, which just means that they are not short circuit operators. As you probably know, here’s how the python and and or operators work: As far as I know, python has no eager boolean operators, they would have to be explicitly coded, for instance like … Read more

git push –force-with-lease vs. –force

force overwrites a remote branch with your local branch. –force-with-lease is a safer option that will not overwrite any work on the remote branch if more commits were added to the remote branch (by another team-member or coworker or what have you). It ensures you do not overwrite someone elses work by force pushing. I think your … Read more

Procedural and non-procedural query language difference

There is a myth that relational algebra notations are procedural and relational calculus notations are not. But every relation expression corresponds to a certain calculus expression with the same tree structure. So it cannot be procedural when calculus is not. You can implement/execute a query in either notation per its expression tree–or not. A (query) language is procedural when … Read more

What is the difference between “JPG” / “JPEG” / “PNG” / “BMP” / “GIF” / “TIFF” Image?

Yes. They are different file formats (and their file extensions). Wikipedia entries for each of the formats will give you quite a bit of information: JPEG (or JPG, for the file extension; Joint Photographic Experts Group) PNG (Portable Network Graphics) BMP (Bitmap) GIF (Graphics Interchange Format) TIFF (or TIF, for the file extension; Tagged Image File Format) Image formats can … Read more

Identity matrix in Julia

Given using LinearAlgebra, the most julianic way of expressing the identity matrix is: This answer may seem trite, but it is also kind of profound. The whole point of the operator I is that in the vast majority of cases where users want an identity matrix, it is not necessary to actually instantiate that matrix. Let’s say you want … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)