The new Gutenberg editor provided by WordPress is pretty neat. However, there are certain limits of the ability to align text as what we usually do in Microsoft Word, especially the nice-looking “justified text”.
In earlier version of the editor, we can open the extended editing bar and there would be a Justified Alignment option to click and apply on the paragraph. The current one doesn’t have it. To resolve this problem, there are several options: install the old editor plugin (which will be supported till 2022), or simply put the CSS code in the Additonal CSS section of the current theme setting:
Then all the paragraphs from now on will be formatted as Justified.
LaTeX là ngôn ngữ soạn thảo được nhiều người, đặc biệt là dân có ‘động chạm’ đến toán, thích và sử dụng. LaTeX mạnh hơn Word ở chỗ công thức toán có thể cho vào văn bản một cách đơn giản và đẹp (đẹp hơn Equation và MathType nhiều!) và làm việc ở môi trường nào cũng được: windows, linux, OSX….
Đó là để giới thiệu cho những người chưa biết Latex là gì, còn khi ai đó đã tìm đến câu hỏi ở đề bài thì dưới đây sẽ đi thẳng vào vấn đề luôn.
Continue reading Từ LaTeX sang Word/PPT/Illustrator… →
Five of the Best Programming Languages and Frameworks for a Small Business
Choosing a programming framework for a small business can be overwhelming- there are so many. Here are a few of the best choices, to help you get started.
Ask a room of ten developers which programming framework is the ‘best on the market,’ and you’re liable to receive ten different answers. Each developer will sing the praises of a different language, and each one will very probably feel that theirs is the only logical choice. The most confusing thing, though? Each and every one of those developers will be correct.
Continue reading The Best Programming Languages →
When I first start my research life, I began with Python, and I never go back. Python is powerful, simple, rich and widely supported.
In my researches, I met several problems, and I built the solution, but a lot of them are already prepared in Python.
- Plotting – matplotlib:
I often use Matlab to plot my diagrams, but matplotlib is so powerful and produces nice plots. There are lots of examples that you will be able to master this package in no time. Continue reading Available Python tools for researchers →
for i in range(20):
When python finds error in the code, it will stop and escape the loop and it might be a nightmare for us, so making an exception handler is a smart choice.
The above code is the simplest usage of try… except function, it means that, from the range(20) we will do ‘something here’, but if there are errors, here for example the error IOError is the error of not finding the object, thanks to try except, python in this case will process the ‘pass’ (forget the error and continue). So the loop is safe and can be continued.