Custom request header of RestTemplate in SpringBoot WEB Series

User defined request header of RestTemplate in WEB Series The last article introduced the basic usage posture of RestTemplate, and at the end of the paper, some extended advanced usage posture were proposed. This article will focus on how to carry user-defined request header, such as setting user agent and carrying Cookie Get carry request ...

Posted by mysterbx on Mon, 29 Jun 2020 18:51:26 -0700

AppleScript realizes automatic forwarding of SMS

Background: during this period, a colleague needs to log in to my account frequently, and to verify the mobile phone verification code, I need to manually forward the verification code to him every time. I find it very troublesome, so I want to see if there is any way to free my hands, and then I find that AppleScript is such a very useful thi ...

Posted by randydg on Thu, 25 Jun 2020 01:51:38 -0700

New features of JDK11: new HTTP API

brief introduction Before JDK11, the HTTP function of java was very weak, only HttpURLConnection was provided for HTTP connection, and it was very complex to use. So we usually use the third-party HTTP client (Apache HttpComponents or OkHttp) to make HTTP requests. Everything has changed in JDK11. In the java.net.http package, the latest HttpCl ...

Posted by PhilipXVIII18 on Wed, 13 May 2020 15:58:37 -0700

Problems of brew installation in Mac os

It's finally done! HomeBrew homebrew is a good installation tool under OS X, similar to apt get under linux However, from last summer vacation, the installation of this software can not be installed, baidu several times can not.. Several more installations were attempted during.. Uninstall, re install several times, or not.. This is an e ...

Posted by kirk112 on Mon, 20 Apr 2020 09:49:43 -0700

< attacking entomologist > data acquisition of public opinion monitoring

Public opinion monitoring is the behavior of monitoring and predicting the public opinions and opinions on the Internet. Most monitoring technologies are based on crawlers. If we search the keywords of relevant hot events with search engines and save the results locally, the first link of public opinion monitoring is realized: rea ...

Posted by andre&rachel on Sat, 04 Apr 2020 08:56:05 -0700

Learning notes CB005: key words, corpus extraction

Keyword extraction. The pynlpir library implements keyword extraction. # coding:utf-8 import sys import importlib importlib.reload(sys) import pynlpir pynlpir.open() s = 'How to delete the junk files in the computer' key_words = pynlpir.get_key_words(s, weighted=True) for key_word in key_words: print(key_word[0], 't', key_word[1]) pynl ...

Posted by Cloud9247 on Thu, 02 Apr 2020 09:32:17 -0700

[ASP.NET Core 3.1] Browser sniffing solves missing cookies in some browsers

[ASP.NET Core 3.1] Browser sniffing solves missing cookies in some browsersStudents who have read the previous article should know that browsers such as Sogou and 360 redirect repeatedly in single sign-on, and eventually fail and make mistakes. The reason is that non-Chrome80+ browsers do not recognize the SameSite=none attribute value on the C ...

Posted by jallard on Mon, 30 Mar 2020 19:53:37 -0700

What did Runtime do during the startup of Runtime objc4-779.1 App?

Knowledge preparation First of all, we need to know a scenario. We click on the application on the screen, and then we can see that the application is fully displayed and can be operated. In this process, the system, runtime and our own code have done a lot of work, and many excellent blogs have descr ...

Posted by smerny on Tue, 10 Mar 2020 04:09:32 -0700

Multi thread crawling agent and verifying

Preface One of the most common ways in anti crawler is to determine the frequency of your requests. If you send a large number of requests in a short period of time, whether you are a person or not, first seal your account or IP for a period of time. At this time, in order to achieve the goal of their ...

Posted by Jen_u41 on Wed, 29 Jan 2020 21:34:19 -0800

Solution of "running package script" for MAC installing MacPorts card

Click the upper right corner to force the end of "installer" Open terminal, enter the command "ps -ef | grep install", find the legacy process and kill it Install Xcode Enter the command "xcodebuild -license" and agree MacPorts is stuck because the installation script uses Rsync update during the installation pro ...

Posted by swathin2 on Thu, 09 Jan 2020 07:11:03 -0800