Five basic storage modes of android

File store SharedPreferences SQLite database storage ContentProvider Network storage I. File Storage Default storage path: / data/data/<PackageName>/filesFile operation mode: MODE_PRIVATE (default): Overlay, MODE_APPEND: Addition write file public void save(){ String data = "save something here"; FileOutputStream out = ...

Posted on Thu, 11 Apr 2019 09:54:30 -0700 by ffsja

Ubuntu 14.04 Installation Redis and Simple Configuration

1, foreword Redis is a commonly used memory-based Key-Value database, which is more advanced than Memcache and supports a variety of data structures. It is efficient and fast. Redis can easily solve the problem of high concurrent data access; it is also very good as a time-to-time monitoring signal processing. 2, installation //stay Ub ...

Posted on Wed, 10 Apr 2019 18:54:31 -0700 by phpcat

Learning and Use of LitePal

LitePal It's the great God. Guo Lin Developed ORM Framework: Open source address: https://github.com/LitePalFramework/LitePal Because it was used in development before. GreenDAO Comparing the two frameworks, my feeling is LitePal It's more convenient to operate and more efficient to GreenDao, but LitePal is enough for general app development ...

Posted on Wed, 10 Apr 2019 12:48:31 -0700 by Unseeeen

Eclipse connects database through jdbc to make simple login interface [novice must see]

I. Preface: Doing website development requires a variety of ways of collocation. Front-end technology can use PHP, ASP, JSP, ASP.NET, CGI, etc. HTML/CSS, JS, JAVA, XML are the most commonly used basic languages. HTML/CSS+JS can render the interface, while JAVA can do background data processing. XML can also be used as a medium for data tran ...

Posted on Wed, 10 Apr 2019 11:00:30 -0700 by stephenalistoun

Using indexed DB (3) (translation)

Use cursors Using the get() method requires that you know the [key] of the data you want to query. If you want to step through all records of the object store, you can use the cursor. As follows: var objectStore = db.transaction("customers").objectStore("customers"); objectStore.openCursor().onsuccess = function(event) { var cursor = e ...

Posted on Tue, 09 Apr 2019 22:57:32 -0700 by pdpullmn612

Initial knowledge of database connection pool

Foreword: (still in study, various excerpts, follow-up supplements) Basic knowledge Definition: The database connection pool is responsible for allocating, managing and releasing database connections. It allows applications to reuse an existing database connection rather than re-establish it. It also releases database connections with idle ...

Posted on Tue, 09 Apr 2019 22:30:31 -0700 by redesigner

Repair of Sentry Log Collection System

Nearly two months after Sentry went online, it collapsed for two reasons: 1. The machine disk space running the postgresql container is exhausted, causing the database to stop serving 2. The docker running Nginx and sentry web cannot be restarted. The process of repairing sentry is therefore divided into two steps: 1. Clean up the data in p ...

Posted on Tue, 09 Apr 2019 21:48:31 -0700 by Q

mybatis reverse engineering

1. What is reverse engineering? mybaits requires programmers to write sql statements themselves, and mybatis officially provides reverse engineering to automatically generate the code required for mybatis execution against a single form: (mapper.java,mapper.xml, po.) Suggestion: In the actual development of enterprises, the commonly used reve ...

Posted on Tue, 09 Apr 2019 20:24:31 -0700 by truman

async/await and promise (asynchronous operation problem in nodejs)

This article is only a rough introduction to the use of methods, to understand the core concepts, please refer to official documents or other information. For example, a scenario when writing the article details page: First change the PV in the article details, then read the article details, and then consult the article comments and the article ...

Posted on Tue, 09 Apr 2019 18:06:31 -0700 by J4rod

cockroachDB Learning Summary

1. Introduction to cockroachDB Cockroaches are one of the most adaptable species on earth. They can survive in anaerobic conditions for 45 minutes and for more than a month without food. Even if their heads were different, Xiaoqiang could not be killed on the spot - they could live for several days without their heads. Within technology gian ...

Posted on Tue, 09 Apr 2019 15:42:31 -0700 by Rai_de