Category Archives: Programming

Từ LaTeX sang Word/PPT/Illustrator…

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…

The Best Programming Languages

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

Available Python tools for researchers

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.

  1. 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

Handle Error in Python with try except

for i in range(20):
  try:
    something here
  except IOError:
    pass

 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.