◄ Back

Blogs

Format numbers in Javascript

Now, you can just use .toLocaleString() to format a number in any way you like. Back then you would need a custom function to do that for you, now you can do it directly. Just call this function and …

Git Logging Github Accounts With 2FA

if you have 2FA for your Github account activated, it will be annoying to access your private repositories through git, since your password wouldn’t work anymore.

What you want to do is that to …

How to connect to github

When using git, it is a hassle to retype the password every time we commit. Of course, you can always save the password locally on the disk, like this:

git config credential.helper store

The problem …

How to connect to your Pythonanywhere database remotely

Pythonanywhere is an excellent place to run your python code and your website, it offers multiple consoles and database.
When you are debugging your code, and it uses a database, such as a website, it …

How to dupilicate a python list

If you want a copy of a list, you might do this:

list1 = list2

if you alter values in list2, you would find that the values in list1 also changed. This is because that list2 is a shallow copy of …

How to freely and accurately OCR PDFs

Many times when someone sends you a pdf of a scanned or a picture of a document, you can’t copy texts off of the pdf, nor searching for keywords. It becomes very frustrating to process the …

How to get a procedure's definition in MSSQL

If you are new to a legacy database and want to learn more about its internals, sometimes it’s good to read the definitions of stored procedures. It can teach you what standard to follow and how …

How to make elements fixed on the screen

If you want something to always float on the screen, not affected by other elements, you can achieve this using CSS:

.element{
   position: fixed,
}

This way, you can set an element to be fixed on the …

How to strip html tags in Django

Many times, you would want to strip the html tags away from a string and only leave plain text. This can be accomplished by using libraries such as BeautifulSoup, but it can also be accomplished using …

Manim: An Python Animation Engine

If you use Python, you might know a library called Manim. It is first a personal project by 3b1b and you can now (well it always has been open source, but it finally got usable documentation and …

What Is GraphQL

GraphQL is a new data API developed by Facebook. It can be added directly to your existing databases and provides a clear way to request data. For example, if you want everyone’s name in the …

What is MOSS and How to Use It

If you are a computer science teacher or professor, one of the problems you might have is when your students copy code from each other. Or if you are investigating someone’s code and you want a …

WSL2: WSL but better

the new WSL(Windows Subsystem Linux) is a nice tool for developers to test and develop projects on a simulated Linux kernel on Windows without running a full VM. Doing so has many advantages such as …