Package description file package.json details

Package description file Package description file is used to express non code related information. It is a JSON file package.json, which is located in the root directory of the package and is an important part of the package. All the behaviors of npm are closely related to the fields in the package de ...

Posted on Sun, 16 Feb 2020 02:56:39 -0800 by Deserteye

Detailed summary of foreach in MyBatis

A detailed explanation of foreach statement of MyBatis foreach is mainly used to build in conditions. It can iterate a set in SQL statements. Properties of foreach element It mainly includes item, index, collection, open, separator, close Alias of each element in the item collection when iterating i ...

Posted on Sun, 16 Feb 2020 01:56:11 -0800 by nicephotog

Common relationship template codes

The following is a list of common relationship definition template codes used in relational databases One to many Example scenario: Users and their posts (user table and post table) Roles and users belonging to this role (role table and multi-user table) Sample code class Role(db.Model): """Role table""" __tablename__ = 'roles' ...

Posted on Sat, 15 Feb 2020 08:00:50 -0800 by JonathanV

Core data: the fastest way to delete all instances of an entity

I am using Core Data to keep the results of web service calls locally. Web services return the complete object model for "cars" - maybe 2000 (and I can't have web services return less than one or all cars). The next time I open my application, I want to refresh the Core Data persistent copy by invoking the Web services of all cars ...

Posted on Sat, 15 Feb 2020 06:52:20 -0800 by emma57573

How to use Web storage in HTML5?

With HTML5 Web storage, users' browsing data can be stored locally. Before HTML5, local storage used cookie s. Advantages of Web storage More secure More quickly Can store a lot of data Each server request does not send stored data Data exists as key / value pairs, and the data of a Web page can onl ...

Posted on Sat, 15 Feb 2020 04:51:47 -0800 by dch27

python's method of image processing with TensorFlow

This article mainly introduces the method of image processing using TensorFlow. The editor thinks it's very good. Now I'll share it with you and give you a reference. Let's follow Xiaobian to have a look Article directory 1, Zooming in and out of pictures 2, Brightness adjustment of pictures 3, Contr ...

Posted on Fri, 14 Feb 2020 06:51:22 -0800 by patrick99e99

java implementation of user registration mailbox activation verification

Function: register the account through the email, and send the activation email to the email if the registration is successful. Prompt the user to log in the email for account activation before using the account. Process: essentially, add a piece of data to the user table, and there should be a code f ...

Posted on Thu, 13 Feb 2020 09:06:53 -0800 by Lenbot

Record the process of automatic Down machine a few minutes after an Oracle startup

Recently, in the process of work, we encountered an Oracle failure. The phenomenon is that the Oracle database will automatically shut down within ten seconds after the startup. After a day and a half of processing, Oracle will be temporarily recovered. It is hereby recorded for follow-up tracking. 1. Observe the problem Find the Oracle excepti ...

Posted on Wed, 12 Feb 2020 21:55:19 -0800 by matecocido

Notes on design mode 01: simple and efficient single example mode

Design patterns are essential skills for good programmers, and they are often mentioned in interviews. Preface IT industry is the industry with high job hopping rate, which is not frequent to interview. As an interviewer, if the candidate's other knowledge is OK, I will finally mention the content related to * * design pattern. If the answ ...

Posted on Wed, 12 Feb 2020 20:21:37 -0800 by auddog

[code reading] warpgan: automatic card generation

Code link Reference book: Tensorflow practice Google deep learning framework I think we can see how tensorflow is built and train a neural network more clearly in Chapter 3. 1. train.py This document defines the main function def main(args): Initialization: # Initalization for running if c ...

Posted on Wed, 12 Feb 2020 02:48:10 -0800 by RyanSmith345