• Judging whether a field is a number in Oracle


    In our normal development, we may encounter the problem of judging whether a column is composed of numbers. We all know that Oracle does not provide us with such a ready-made function. According to my experience, I have summed up two effective methods (column name: column, table name: table) Use the translate + 1 Copy […]

  • Why do you study go?


    Why should you learn go? Original author: keval Patel Translation from: Nuggets translation plan Permanent link to this article: https://github.com/xitu/gold-miner/blob/master/todo1/why-should-you-learn-go.md Translator: Master situ Checked by: tokenjan, Jack eggie Why do you study go? “Go will be the server language of the future.” — Tobias Lütke, Shopify In the past few years, there has been a […]

  • How to use translate and transition in CSS3


    Translate and transition have always made me think that they are very powerful and can’t learn. In fact, they are quite resistant to understand them. The interface has seen the document for less than half an hour, and they have probably understood it. Here is an example. You can download it and run it yourself […]

  • Analysis of the differences and functions among transition, transform and translate in CSS3


    Transform and translate Transform refers to transformation and deformation. It is an attribute of CSS3, just like other width and height attributes Translate is the attribute value of transform, which refers to 2D transformation of elements. 2D transformation refers to how much elements move in the current position (0,0) in the direction of X axis […]

  • Flash tutorial HTTP method


    HTTP protocol is the foundation of data communication in the world wide web. In this protocol, different methods can be used to obtain data for the same URLSeveral different HTTP methods are shown below GETThe most common method is to send unencrypted information to a server HEADThis method is the same as get except that […]

  • Flash tutorial template


    We can make functions bound to a URL return HTML. For example, in the following code,hello()The function returns the<h1>Hello World string of the package from flask import Flask app = Flask(__name__) @app.route(‘/’) def index(): return ‘<html><body><h1>Hello World'</h1></body></html>’ if __name__ == ‘__main__’: app.run(debug = True) But you can see that it’s stupid to directly return HTML […]

  • Flash tutorial — static files


    A web application often needs static files such as JavaScript or CSS to help the web page better display the content. Usually, the web server is used to provide this static file service, but in the development stage of the flag program, these files need to be placed in the static folder under the root […]

  • Flash tutorial — request object


    In flask, the request sent by the web page is transferred to the server and transformed into a global request object. In order to process the request object, we need to reference it from the flask package.The important properties of the request object are as follows: formThe key value pairs of this dictionary object represent […]

  • Flash tutorial — send form data to template


    As we have seen before, in flask, we can specify HTTP methods for URL rules, and the corresponding functions can receive form data in the form of dictionaries, and then deliver the data to the template and finally render it as a web page In the following example, the URL ‘/’ renders a web page […]

  • Some new postures of ES6


    Original: Javascript ES6 – (Exploring the new built in methods) Object property assignment When dealing with objects, you may need to combine multiple objects, new Object.assign()Functions can do this succinctly. Object merging Our goal is to combine the objects of 2-4 lines into one object. In Es5, you need to loop several objects and assign […]

  • Flash tutorial cookie


    Cookie is a kind of data stored in the client computer in the form of text. Its function is to record and track the data used by the client for statistics and better user experience The global request object of flask contains the cookie attribute, which is a dictionary object. Its key value pair is […]

  • Flash tutorial – redirection and errors


    The flask class has oneredirect()Method. When we call it, it returns a response object and redirects the user to another location with the specified status code redirect()The prototype of the method is as follows: Flask.redirect(location, statuscode, response) In the above function, locationThe URL Location we want to redirect statuscodeThe status code will be sent to […]