Spent three nights after work playing the game Kingdom: Classic Stats and finally, I finished the game.
I was looking for a React static HTML solution for my incoming marketing page project. Actually, I was not looking for a static website generator, more just need to generate a html file that contains react rendering result HTML, which is for SEO friendly purpose.
Yes, I just released the first rough version of my English number listening practice APP: English Number
I m having my NAATI class recently, it is a course that helps you practice to be an interpreter. I’m doing English-Mandarin interpreting.
The practice is usually based on a dialogue conducted by an English speaker and LOTH speaker. What I will do is interesting the content from the English speaker to Mandarin and the other way around, one by one.
Recently I upgrade my project from webpack1 to webpack3, one of the main highlight feature for me is Tree Shaking. Depnding on the static structure of ES6 module system, webpack is now able to get rid of unused modules from your build.
That sounds very cool, but after I finished my upgrade and rebuilt my project, the decrease of the file sizes did not reflect my expectation.
Why? Did I not use it right, or is it actually not working?
It was busy last weekend, I spent most of my time with Neil, one of my best friends in Australia.
I met Neil a year ago, he is an accounting student in Melbourne University. He is very energetic and passionate young men. Meanwhile he is gentle and caring for his friend, to which I sometimes feel too overwhelming.
Neil calls his friends darling, I mean, who does that? Unless for one’s intimate friend or lover. But he doesn’t care, he calls me darling in front of my whole classmates without a hesitation, whereas I always feel a little embarrassed but I would still try to be cool. You see, I even care too much about other people’s thought to express my unpleasant.
I was born in a small town in the middle east of China in 1990. It was a very backward town and parts of it even remains the same for the last past 20 years.
It was not big but you could find everything you need.
only() are the two most useful features for me among all the tools that Mocha provides. So when I started to write test cases in Python using Unittest, I felt so frustrated, because there’s nothing that can do the same as the
only() did for me.
So I am going to teach you how to add these two features to unittest-testing in this article, but before we get there, I want to talk more about why these two features are important to your development.
This week I was using Flask-Migrate to do a database data migration. I created an empty reversion file and put my migrate script in it so that the migrate can be recorded just like the other reversion files.
The only thing special about writing a migration script is you need to use raw SQL to do the database manipulation instead of using ORM model object from Flask-SQLAlchemy. The reason is that maybe at the time your script is written, your model definition in your application reflects your actual database structure, but it may change over time, and once that happens, your script may not work correctly anymore.
This is one thing that I think is quite important when you are doing data migration with Flask-Migrate.
I am using React with React-Router to make a SPA(Single Page Application) recently. In my setting page, I adopted the typical Master-Detail layout.
It’s quite easy if you only need to make it work on desktop devices, but for small devices, you need to put extra effort into it.
This article describes how I implement the Master-Detail Layout which works well on both desktop and mobile. If you just want to see the end result, check out the demo project.