Post implementation of blog class in Flask

1. Definition of post class A blog post should contain the most basic fields: title, author, publication time, summary, content, reference (reference can be written into the content). From the simplest point of view, first write the fields as English title, author, timestamp, summary, content. Of course, a database table must have a primary key ...

Posted by Iceman18 on Wed, 27 May 2020 07:57:04 +0200

Beautiful HTML 5 pages special effects learning notes _svg to achieve different votes and different expressions

Characteristic: Different expressions are displayed according to different ratings, and they look like they can roll on a conveyor belt. Using pure code (svg) to draw expressions and stars for scoring html+css, no javascript, easy to get started: simple Welcome to my blog to read this article: http://clatterrr.com/archives... Source code: ...

Posted by vulcant13 on Sat, 24 Aug 2019 17:04:03 +0200

Let your EditText delete facial expressions more efficiently than Wechat -- remember an android Performance Analysis Optimization Practice

Preface I'm working on SpEditTool: an EditText control that supports facial expressions, @mention, # topic, etc. This project has a very strange problem. When EditText enters too many expressions, deleting expressions from the middle will result in a very card situation, while deleting expressions from the end will not. Af ...

Posted by jbx on Sat, 10 Aug 2019 12:22:10 +0200

Java emoji persistence mysql

Java emoji persistence mysqlI haven't updated my blog for a long time. Today I share with you a question about emoji expression persistence. I believe that web developers have encountered such a problem, because we know that MySQL utf-8 character set can't save emoji expression characters. Why? Because ordinary strings or expressions occupy 3 b ...

Posted by evolve4 on Sat, 27 Jul 2019 05:31:52 +0200

Something about UITextField

From: http://sindrilin.com/ios-dev/2016/09/23/UITextField UITextField is used as an important control to obtain user information in project, but there are many pits in practical application: modifying keyboard type to limit the type of keyboard, but it is difficult to limit the type of input of third-party keyboard; restricting the length ...

Posted by tooNight on Wed, 17 Jul 2019 19:59:18 +0200