How to transfer data between "activities" of Android applications?
I have a situation where after I log in through the login page, there will be an exit button on each activity.
Click sign out and I will pass the session id of the logged in user to exit. Who can tell me how to make session id available to all activities?
Any alternative to this
#1 building
The most convenient way to pass data betw ...
Posted by Roberto on Tue, 10 Dec 2019 14:36:09 -0800
Realization of the back end of tmall's Homepage Based on servlet+filter + reflection simulation
In order to deepen the principle of web, this project does not use the framework, mainly describes the ideas from request to page presentation. For details, please refer to the specific project at the end of the article
Why use filter? Direct servlet implementation is not enough
Because tmall and other projects need many servlets to handle spec ...
Posted by Shuriken1 on Tue, 10 Dec 2019 02:18:41 -0800
General paging of hibernate
First of all, look at a business requirement: fuzzy query data by book name and paging function. Usually, you can write the query method as follows, but it is troublesome if there are many query dimensions.
A new BaseDao is written to deal with this problem. The BaseDao code is as follows:
package com.zking.eight.util;
import j ...
Posted by kporter.porter on Mon, 09 Dec 2019 16:28:17 -0800
Summary of springboot project
The first is the use of thmeleaf
th: attr set property value
https://blog.csdn.net/sun_jy2011/article/details/40215423
Some uses of th tag
https://segmentfault.com/a/1190000009903821
Th: if th: text th: value th: selected, etc
<a href="register.html" title="" th:unless="${session.user} ne null" >Register</a>
...
Posted by RightNow21 on Mon, 09 Dec 2019 07:31:48 -0800
Deep understanding of MDL metadata locks
Foreword:
When you execute a SQL in MySQL, the statement is not completed within the time you expect. We usually log in to the MySQL database to see if something is wrong. One of the commands we usually use is show processlist to see which session s are there and what they are doing.When you see waiting for table metadata lock, you encounter an ...
Posted by MytHunter on Sun, 08 Dec 2019 15:15:07 -0800
Using flash login to make log in verification notes under custom ORM
1. installation;
pip install flask_login
2. use:
Registration application
import os
from flask_login import LoginManager, current_user
login_manager = LoginManager()
login_manager.login_view = 'users.login' # Jump view not logged in
login_manager.session_protection = 'strong'
login_manager.login_message = u"Bonvolu ensaluti por uzi tiu ...
Posted by alexdoug on Sun, 08 Dec 2019 09:30:26 -0800
concurrent.futures of python concurrent modules
Concurrent.futures of python concurrent modules (2)
Last time, we briefly understood some basic methods and usage of the module. Here we further understand and expand concurrent.futures
Last content click here.
Concurrent.futures of python concurrent modules (2)
Take downloading pictures as an example. The following program downloads 24 express ...
Posted by SQHell on Sun, 08 Dec 2019 07:17:34 -0800
Small program voice synthesis tts docking multi platform (iFLYTEK, Spitzer, Baidu)
Features of applet functions
Text to speech
Multi platform and multi pronunciation
Adjustable speech speed
Audio download available
Conscience products without advertisement
Small program code
Connected to online voice recognition service
Sibi dui platform (more than 40 free speakers)
IFLYTEK open platform (5 free speakers)
Baidu voice ( ...
Posted by RW on Sun, 08 Dec 2019 04:19:19 -0800
aiohttp web provides file download service
python3.6Using aiohttp, aiofiles library, asynchronous operationThe server code is as follows. After starting the service, it will listen to 0.0.0.0:8080 by defaultNo exception handling, applicable to small files, for reference only
file_server.py:
import aiofiles
import asyncio
import os
from aiohttp.web import Response
from aiohttp import we ...
Posted by LarryK on Sat, 07 Dec 2019 17:50:42 -0800
Java Web Learning - filters and listeners
Filter
The basic knowledge is introduced in detail in the rookie course
Rookie tutorial filter
<!--Prepare the first filter-->
<filter>
<filter-name>Filter1</filter-name>
<filter-class>com.servlet.filter.Filter1</filter-class>
</filter>
<filter-mapping>
<fil ...
Posted by snorky on Sat, 07 Dec 2019 13:56:58 -0800