[Learning] Odoo super call dependency test
A test logs how Odoo process modules dependency with different install order
Test source code: https://github.com/NothingCtrl/odoo_super_dep_test
A test logs how Odoo process modules dependency with different install order
Test source code: https://github.com/NothingCtrl/odoo_super_dep_test
For unkown reason, python webserver return MimeType text/plain
for all .js
file when running under Windows 10
There are many ways to find bugs in Python code: the built-in debugger (pdb), a healthy amount of unit tests, a debugger in an IDE like Pycharm or Visual Studio, try/catch
statements, if/else
statements, assert statements
, or the tried and true practice of covering every inch of your codebase in print()
statements like it’s going out of style.
Assert statements can help us catch bugs quickly and are far less intrusive than copious amounts of print
statements. However, unlike print
statements, assert statements can be unexpectedly risky to use!
This article explores how to use asserts safely and what causes them to be unsafe. By the end of this article, you’ll know how to use assert
most optimally without inadvertently opening yourself up to security issues.
Let’s get a little “meta” about programming.
How does the Python program (better know as the interpreter) “know” how to run your code? If you’re new to programming, it may seem like magic. In fact, it still seems like magic to me after being a professional for more than a decade.
The Python interpreter is not magic (sorry to disappoint you). It follows a predictable set of steps to translate your code into instructions that a machine can run.
Một số kết quả các dịch vụ hosting và in-house hosting
Benchmark script: curl -LsO bench.monster/speedtest.sh; bash speedtest.sh -asia
Lòng vòng trên internet và lượm được, viết chương trình in ra "Hello world!" the weirdest way!
python hello_world.py
Hello World!
Loạt bài viết chi tiết hướng dẫn xây dựng ứng dụng web với Django framework