Update Log

2022-12-27

This is the very first article submitted online from my page which can be historiclally loaded and shown automatically


content below is replicated from the log I wrote when I created this site

Finally I have built a quite useful framework of a web page. I will learn javascript to make it able to interact with my back-end in next few days. Then I will come back to Java and focus on the Back-end. Further more, I would make a plan for next study steps this weekend.

2020/06/04


Today I added the adaptive layout to the page. I have substantively grasped the basic method of using js. And I found it indispensible to master MySQL to propel the work further. I would do that as well as the study plan mentioned yesterday

2020/06/05


Today I added a simple but avilible and secure sign in and up system. encrypt user’s password with MD5 and then encrypt it again after adding salt to it The salt was generated by secure java method and different for each person I would study SQL further and make plans tommorow

2020/06/06 actually 7th


No progress today and I will focus on learning english in the next weeks to cope with possibly avilible IELTS exam on July 2th

2020/06/07


Added time and click count panel on the main page I must reduce the effort poured in this page and focus more on IELTS and PTE It is said that IELTS cannot be held until October

2020/06/09


The BIGGEST commit so far! Almost complete the auto-login system

2020/06/13


Auto login system is availible! Next step is to beautify the log in and sign up page and optimize signup procedure

2020/06/14


Remake the login page into a gorgeous one! It is the assistant! Refered to a customized css sheet.

2020/06/23


Now using jquery! Now we can search in the home page and short-cut supported! Reorganize the DAO, init tables on start. HOTFIX: Assign the z-index to avoid the situation that position fixed is blocked by position absolute. 2020/06/24


It has been one month since I updated this log last time, however, I did consecutively contribute to this website in the mouth and I will try to summarise the changes below:

Improve the flawed auto-login system to avoid the situation when the local token was destroyed by the browser but the HTTP session was not. Add a minimum but available article system with a minimum editor page attached, now we can submit an article with title, main body to the server and the server would save the title, the author and some other info of the article but the function of display and saving the main body article has not been implemented yet Today we added a minimum weather panel to the front end but it need a further optimize Goals:

Now we MUST switch the whole project to Spring structure from the original servlet one Try to master database(MYSQL) and make it a core at the current phase. Try to master the details of the java language. 2020/07/21


Now after the pause more than half a year, I finally restart this work of development. What I have done in the past weeks:

Build the essential framework of article editing, update, previewing and viewing an article. Integrate some useful utilities on it like lantency and speed of the server net. Using jquery and mysql more proficiently. TODO: Develop update / delete / query article function. Develop article management function. Develop file management function. Develop simple server management funciton. Optimize the current article structure. Beautify my pages. Long time targets:

Transfer this project to springboot Using vue to rebuild the front-end when we visit it using mobile devices. Using redis? Even though it is totally unnecessary. Thank you very much! 2021/04/14


Today, article update function is added and this is the ever first message updated from the page. 2021/04/16


Here is the v2 blog, below are the changes:

rewrite the index.html with jquery totally and try to arrange DOMs rationally. Add a category to every articles! And now we can filt them with category on the front page Re-design user group, to limit the permission of normal users who commonly signup themselves and prepare for enabling comment function in the future. 2021/04/24


re-set the width of all center frame from percentage value to a fixed rem value to cope with extreme zoom in and out. Add some anime to the buttons with self-made frames. Change some fonts. 2021/04/26


This website has been updated to v2.0! but there are still something to do

website management page Measure to cope with dreal comment attack pop-up window editor page 2021/05/01


Make the font size of both editor and preview bigger. Use monospace for the editor, maybe for all the page later. I think i should reverse the order of this update log to make the latest easiest to see? TODO:

Import the buttons for the front page because the slide page performs really not well. Add sub classes to the front page, fortunately, I leave this struct on my back end. Beauty the manage page and add more functions to it. Add draft function, it is easy. Add dialog pages. 2021/05/21


Add a local draft function that i do not fear of losing any data.

2021/05/29


About the length of the summary

We limit the summary data in mysql to 1024 (VARCHAR(1024)) and we upload the summary using sum = escape(md.substr(0, 256)); previously but when there are tooooo many Chinese charactors in the prior paragraph of the article, the escape() function can also expand the length of the sum above 1024 which would finally make the process of update/post fail.

To fix this issue as well as keep a proper length of english written articles,we set the length of substring() to 360 but cut if half when a too lengthy summary is detected.

But to be honest, the length of 360 does not fit pure english written article so maybe original 256 is still better, maybe next time… 2021/06/25


A heavy update: I added a notification system with below functions:

The server can send mail with existing mail account now. Send a mail to my qq mail every day. Check if the last time I logged in this blog everyday. If I did not log in for 30days then send a mail to notify myself to log in. If I did not log in for 30days after previous notification then send mails to my specified contacts that I may have been dead. Due to that this system is still under test, I now set contact myself in case of sending wrong mails. I think it is really helpful for people living alone for me. 2021/09/06


TODO: -2. Add google choice when searching.

Import the buttons for the front page because the slide page performs really not well. Add sub classes to the front page, fortunately, I leave this struct on my back end. Beauty the manage page and add more functions to it. Add dialog pages.


V3.0:

A dramatic refresh of the entire website:

quill as editor Vue + vuetify to remake UI Fastapi as service. SQLAlchemy to get rid of any plain SQL script. OAuth2 based on JWT to authenticate. Mature database design. 2021/12/01


Upload images seperately with Vditor as editor now, remove all (xxx: any) in vue to make it fully typescript.

2022/12/25


Future:

  1. content toc
  2. comment board
  3. backend tools:

  4. Mail tools

  5. simple msg/file exchanges
  6. login verification
  7. simple server management.
  8. backend config files for dev env
  9. more unit test

Upgrade the whole backend to asynchronized, with Python asyncio!

2023/01/19


Add Waline for comment service, for /About page only now, the server run in node docker container and db shares postgres with fastapi, takes 150MB extra memory.

2023/01/27


add redis & test

2023/02/09


Use pinja as preview and content cache, fast as lightning!

2023/03/01