Use Customized User Profile to Replace Django Default User Tables Use Customized User Profile to Replace Django Default User Tables
In Django, the default user profile table is created as auth_user. Alternatively, we can create our own customized UserP
2021-04-20
Configure Django ORM with MySQL Configure Django ORM with MySQL
Django uses sqlite as the default database. In this post, I’ll explain how to configure Django settings to connect with
2021-04-20
Convert Decimal to Binary in C Convert Decimal to Binary in C
Convert Decimal to BinaryThe size of an integer is assumed to be 32 bits. We use the bitwise operator “AND” to perform t
2021-04-20
Vue3 Project Init and Some Basic Config Vue3 Project Init and Some Basic Config
Vue3 was released for a while. In this post, I will initiate a new Vue3 project with Vue Cli. Tools UsedI will use Vue C
2021-04-16
C Fundamentals C Fundamentals
1. Installation For local development, I’m using WSL2 Ubuntu LTS 20.04, so I need to install build-essential sudo apt
2020-11-05
S01E03 Inheritance and Polymorphism S01E03 Inheritance and Polymorphism
Object OrientedOOP has three features: Encapsulation Inheritance Polymorphism Inheritance C++’s default inheritance is
2020-08-22
How to mannually start chromedriver How to mannually start chromedriver
For some websites, using default chromedriver will be detected and blocked.To avoid this, we need to start chrome and ch
2020-05-09
Java Learning Path Java Learning Path
Learning JavaI’ve been thinking about learning Java and Spring Boot Framework as an alternative to Django/Flask. However
2020-05-08
Count element frequencies Count element frequencies
How to count the frequencies of elements in a list? Convert to a dictionary with key is the element, value is the frequ
2020-04-19
Sort Dictionary based on its values Sort Dictionary based on its values
How to sort a dictionary? It’s obvious to use the built-in sorted function, as it’s written in C and optimized already.
2020-04-19
Named Tuple Named Tuple
For data with fixed format, they can be stored as tuples. Compared to dictionary, tuples save more space. However if we
2020-04-19
Filter Data in List, Dictionary and Set Filter Data in List, Dictionary and Set
It’s a common operation to filter elements in list, dictionary and set. For loopdata = [-1, 2, 3, -4, 5] # filter out th
2020-04-19
1 / 3