2. in the .ashx set IsReusable = “false”
3. set Response. BufferOutput = true;
usage scenario:
1. Use local data to reduce network transmission
2. Weak network environment, high latency, low bandwidth, try to localize the data
Usage:
< script>
window.onload = function(){
var Ipt = document.getElementById(‘input1’);
var value = ‘{” name “:” and send the bore is clear “, “Age” : “18”, “address” : “lujiazui city”} “;
set (‘ information, value);
Function (){
//var dataObjData=get(‘information’,1000);
//var dataObjData=get(‘information’,1000*60);
//var dataObjData=get(‘information’,1000*60*60);
// expiration time is 1 hour// var Obj = get (” information “, 1000 * 60 * 60 * 24);
var dataObjData=get(‘information’,1000*60* 24*7);
console.log(dataObjData || null);
if (dataObjData! =”” & & dataObjData! . = null) {
the console log (” name: “+ dataObjData. Name);
the console. The log (” Age: “+ dataObjData. Age);
the console. The log (” address: “+ dataObjData. Age);
} else {
alert (” access to information has expired “);
}
}
}
< /script>
1 function setLocalStorage(key, value) {
2 var curtime = new Date().getTime(); // Get the current time and convert it to a JSON string sequence.
3 var valueDate = JSON.stringify({
4 val: value,
5 timer: curtime
6 });
7 try {
8 localStorage.setItem(key, valueDate);
9 } catch(e) {
10 /*if(e.name === 'QUOTA_EXCEEDED_ERR' || e.name === 'NS_ERROR_DOM_QUOTA_REACHED') {
11 console.log("Error: Local Storage Exceeds Limit");
12 localStorage.clear();
13 } else {
14 console.log("Error: Failure to save to local storage");
15 }*/
16 // Compatibility Writing
17 if(isQuotaExceeded(e)) {
18 console.log("Error: Local Storage Exceeds Limit");
19 localStorage.clear();
20 } else {
21 console.log("Error: Failure to save to local storage");
22 }
23 }
24 }
25
26 function isQuotaExceeded(e) {
27 var quotaExceeded = false;
28 if(e) {
29 if(e.code) {
30 switch(e.code) {
31 case 22:
32 quotaExceeded = true;
33 break;
34 case 1014: // Firefox
35 if(e.name === 'NS_ERROR_DOM_QUOTA_REACHED') {
36 quotaExceeded = true;
37 }
38 break;
39 }
40 } else if(e.number === -2147024882) { // IE8
41 quotaExceeded = true;
42 }
43 }
44 return quotaExceeded;
45 }
46
47 function getLocalStorage(key) {
48 var exp = 60 * 60 * 24; // Seconds of the day
49 if(localStorage.getItem(key)) {
50 var vals = localStorage.getItem(key); // Get locally stored values
51 var dataObj = JSON.parse(vals); // Converting Strings to JSON Objects
52 // If (current time - the time the stored element was set at creation) > Expiration time
53 var isTimed = (new Date().getTime() - dataObj.timer) > exp;
54 if(isTimed) {
55 console.log("Storage has expired");
56 localStorage.removeItem(key);
57 return null;
58 } else {
59 var newValue = dataObj.val;
60 }
61 return newValue;
62 } else {
63 return null;
64 }
65 }
66
67 setLocalStorage('name', 'hello, world');
68 var localKey = getLocalStorage('name');
69 console.log(localKey);
with open("COCO_train.json", "r+") as f:
data = f.readline()
data = data.strip('{').split('{')
del data[0]
del data[-1]
for i in data:
i = '{' + i[: -2]
i = eval(i)
Error code segment:
with open("COCO_train.json", "r+") as f:
data = f.readline()
data = data.strip('{').split('{')
del data[0]
for i in data:
i = '{' + i[: -2]
i = eval(i)
The general reason for this error is that the format is not correct. This error occurs when the blogger converts the string into a dictionary, because the last string is missing the} character, so delete it.
undertake Matlab, Python and C++ programming, machine learning, computer vision theory and guidance, undergraduate and master can, salted fish trading, professional answer please go zhihu, detailed talk please contact QQ number 757160542, if you are the one.
The fetch_MLdata function cannot download the MNIST dataset problem
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('MNIST original')
![]()
solution
1. Download the data set
!wget https://github.com/amplab/datascience-sp14/raw/master/lab7/mldata/mnist-original.mat

2. View the SkLearn data root directory
from sklearn.datasets.base import get_data_home
print (get_data_home())

!tree /root/scikit_learn_data

3. Copy the data set to mldata directory
!cp mnist-original.mat /root/scikit_learn_data/mldata
!tree /root/scikit_learn_data

4. Verify
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('MNIST original')
mnist

5. OK!!!
mnist.data.shape

mnist.target.shape
added
from sklearn.datasets import fetch_openml
mnist = fetch_openml('mnist_784', version=1)
can’t download it!
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("./data/")



Chown root db2chpw Chown root db2ckpw chmod 4511 db2chpw chmod 4511 db2ckpw

To summarize: the purpose of db2ckpw is to check the user id and password on the DB2 server. Because DB2 relies on operating system-level authentication, this process is used to verify the user id and password when a user or application connects to a database on the server. AUTHENTICATION is performed when AUTHENTICATION is set to SERVER, or when a connection is established from an insecure operating system. Verifying permissions requires checking the passwd file, and CKPW, as the name implies, means checking Password file, which is why the tool must be run as root and must be guaranteed if a remote connection is needed.
The following paragraph is clear:
db2ckpwd is the password checking daemon that deals with user authentication. This process is used to confirm that the id exists and has a right to be on the box. If the process if not a root process, only local connections will be allowed to the database because the id is already on the box. To make the OS API calls necessary to determine if the user has the right to be on the box, DB2’s db2ckpwd must run as root. If it is not started as root, it will not have Permissions to make the API calls, and it will return an SQL 30082 rc=24 error. Also since the db2ckpwd must su to root, in order to run as root, the db2ckpw file will need to have the su bit set, And the file system must be mounted so that su ‘ing is allowed.
DB2 creates the connection as follows: 
Records are for reference.
Not enough after reading this article?The 2019 Data Technology Carnival is here! The charm of sharing data with you. Join now and enjoy the very low fares: 
The blogger today plans to configure a multi-certificate Apache so that multiple domain names can be accessed via https://***. According to the online tutorial, just add multiple < VirtualHost *:443> You can do that. But restarting HTTPD always prompts:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Journalctl-xe examines with the command:
systemd[1]: Unit httpd.service entered failed state.
systemd[1]: httpd.service failed.
polkitd[475]: Registered Authentication Agent for unix-process:7076:2357584 (system bus name :1.219 [/usr/bin/pkttyagent -.....
It’s hard to see what’s wrong (at this point the blogger doesn’t know that HTTPD has an error_log, face-covering)
After a long time, I finally opened /var/log/ HTTPD /error_log
AH02312: Fatal error initialising mod_ssl, exiting.
SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Permission denied: AH02201: Init: Can't open server certificate file
When the blogger saw this error message, he immediately understood that it was SELinux!! A lot of potholes on the SELinux before. So the first thing that comes to mind is that the SSL certificate file, the private key file, is not in the right context. Turning SELinux off directly would certainly solve the problem. But this is just a once-and-for-all approach that will cause more problems.
The solution
Three files are required to configure SSL:
2_domain.com.crt
3_domain.com.key
1_root_bundle.crt
Let’s say they’re all under /usr/local/apache/conf/
cd /usr/local/apache/conf/
Displays the current context of each file
ll -Z
Change context
chcon -u system_u -r object_r -t cert_t 1_root_bundle.crt
chcon -u system_u -r object_r -t cert_t 2_domain.com.crt
chcon -u system_u -r object_r -t cert_t 3_domain.com.key
The context configuration is not unique. If this setting doesn’t work, try something else.
Error in .Call.graphics(C_palette2, .Call(C_palette2, NULL)) :
invalid graphics state
What is wrong here?Here is the data:
date trt var val
1/8/2008 cc sw5 0.2684138
1/8/2008 cc sw15 0.2897586
1/8/2008 cc sw5 0.2822414
2/8/2008 cc sw5 0.2494583
2/8/2008 cc sw5 0.2692917
2/8/2008 cc sw15 0.2619167
2/8/2008 cc sw5 0.204375
3/8/2008 cc sw5 0.2430625
3/8/2008 cc sw5 0.2654375
3/8/2008 cc sw5 0.2509583
3/8/2008 cc sw5 0.2055625
1/8/2008 ccw sw15 0.2212414
1/8/2008 ccw sw5 0.3613448
1/8/2008 ccw sw5 0.2607586
2/8/2008 ccw sw5 0.2087917
2/8/2008 ccw sw15 0.3390417
2/8/2008 ccw sw5 0.2436458
2/8/2008 ccw sw5 0.290875
3/8/2008 ccw sw5 0.20175
3/8/2008 ccw sw15 0.328875
3/8/2008 ccw sw5 0.2328958
3/8/2008 ccw sw5 0.2868958
When I work with this data, I specify dates like this:
df<-df[order(as.Date(df$date,format="%d/%m/%Y")),,drop=FALSE]
and here I want to make a scatterplot:
ggplot(data = df,aes(x = date,y = val)) + geom_point(aes(group = trt))
I ran into this same error and solved it by running:
dev.off()
and then running the plot again. I think the graphics device was messed up earlier somehow by exporting some graphics and it didn’t get reset. This worked for me and it’s simpler than reinstalling ggplot2.
\





curl error 6
curl: (6) could not resolve host
According to the online statement, the DNS is modified to 8.8.8.8 and 8.8.4.4, which are still invalid
. After the start order
on aliyun, the DNS is changed to 100.100.2.138 and 100.100.2.136
To solve the problem
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation byte
solution
Unicode decoding error: the “UTF-8” codec could not decode the byte 0xD3 in position 238: The continuing byte is invalid
The solution
Open the file in python’s IDE with a line of code at the top!
# -*- coding: utf-8 -*-
or
# coding: utf8