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

Internet Explorer's console is an undefined error

I'm using Firebug, and I have some similar statements: console.log("..."); In my page. In IE8 (and probably earlier), I received a script error that said "console" was not defined. I try to put it at the top of the page: <script type="text/javascript"> if (!console) console = {log: function() {}}; </script> ...

Posted on Sat, 15 Feb 2020 03:02:48 -0800 by realchamp

Servlet&HTTP&Request of Java learning notes

1, The architecture of Servlet 1.Servlet: Interface 2.GenericServlet: abstract class The other methods in the Servlet interface are implemented by default, and only the servlet() method is abstracted. When defining Servlet classes in the future, you can inherit GenericServlet and implement servlet() m ...

Posted on Sat, 15 Feb 2020 01:15:07 -0800 by lawnninja

Ubuntu 18.10 install DenyHosts to prevent exposed servers from being blasted by malicious ssh

Today, a friend suddenly remembered to see if the server had been blasted by malicious ssh, but he didn't know if it did. There are still a lot of friends like us after checking on github.. A great God has written the plug-in, just use it directly. Originally, I was going to turn off password acces ...

Posted on Sat, 15 Feb 2020 00:19:18 -0800 by katlis

python translation interface test - Final

Passed Previous article Inspired by the blog, if we want to achieve Baidu translation, we need to find out where the value of sign comes from, move a small bench, and start a tutorial! First step After the translation results come out, we open the developer tool (or press F12), then press "Ctr ...

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

Getting started with Android: Toast, Menu usage and destruction of activities

Last: Getting started with Android (3): Basic usage of activities Toast In the previous article onCreate() added some code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.first_layout); Button button1 = (Button) fin ...

Posted on Fri, 14 Feb 2020 20:55:43 -0800 by deathrider

[Enjoy Feign]10. Enable Feign to naturally support POJO encoding and decoding using feign-jackson module

"Flexibility is overestimated - constraints are liberation," says the Redis author. ->Return to Column Directory <- Code download address: https://github.com/f641385712/feign-learning Catalog Preface text feign-jackson Solution Option 1: Manual encoding (serialization) Scenario 2: ...

Posted on Fri, 14 Feb 2020 20:47:50 -0800 by KaFF

Changgou Mall (the first day)

Environment building Information: Cloud disk connection Extraction code: sb1m After getting the data, decompress the virtual machine, and open Centos-changgou.vmx with VMware virtual machine software, Then open, user name: root, password: 123456. The environment used in the later stage has been instal ...

Posted on Fri, 14 Feb 2020 09:19:00 -0800 by ronald29x

python note 18 (review)

Today's Content Review Detailed Content 1. Getting started with Python 1.1 Setting up environment Set up python environment on mac system. The role of environment variables: to facilitate the execution of executable programs on the command line (terminal), add the directory where the executable programs are located to the environment variable ...

Posted on Fri, 14 Feb 2020 08:53:33 -0800 by vidyashankara

Learning Log No. 6

1. By programming, count the number of 9 in 1~n #include <stdio.h> void fun(int n) { int i; int temp; int count = 0; int b; for(i = 1;i <= n;i++) { temp = i; while(temp != 0) { b=temp % 10; temp=temp / 10; if(b == 9) { count++; } } } printf("The result is: %d\n",count); } int ...

Posted on Fri, 14 Feb 2020 08:34:30 -0800 by jtapoling