July 2022

Python utility module (33) httpx

surroundings windows 10 64bit python 3.8 httpx 0.23.0 Introduction We have introduced the use of requests to perform http operations before. This article introduces another third-party library httpx with very similar functions. It provides synchronous and asynchronous API , and supports HTTP/1.1 and HTTP/2 at the same time. It is a full-featured HTTP client. Install

Python utility module (33) httpx Read More »

Go to the Peacock Tea Room in Ely, Cambridge for afternoon tea (the best Michelin tea room in the UK)

Original link: https://justyy.com/archives/47073 Ely Ely is a small town in the northeast of Cambridge . There is a train station. It takes about 15 minutes by train from Cambridge. It took us about 30 minutes to drive. Peacocks Tea Room (Peakcocks Tea Room, 65 Waterside, Ely CB7 4AU). Ely Ely is also often regarded as

Go to the Peacock Tea Room in Ely, Cambridge for afternoon tea (the best Michelin tea room in the UK) Read More »

Notion as a dashboard

Original link: https://sund.site/posts/using_notion_as_a_dashboard/ I have built a Chrome extension useless idea during the last month. The backend service which implemented by Flask is using Notion as a dashboard. Notion API If you want your service to connect Notion, you have to create a Notion integration at this page . Afterwards, you have to share a

Notion as a dashboard Read More »

Why do white-collar workers make more money than farmers

Original link: https://www.ixiqin.com/2022/07/21/white-collar-with-what-than-the-farmers-make-more-money/ I saw such a passage in V2ex and wanted to start a chat. When I first graduated from university, I actually liked small companies, and felt that small companies could provide better compensation and benefits (such a small company, recruiting people must be a bit special). But when I went to big

Why do white-collar workers make more money than farmers Read More »

Singers also look at the times

Original link: https://www.ixiqin.com/2022/07/20/singer-also-look-at-times/ Recently, Jay Chou released a new song, which became the top of the digital album sales chart in one day, and became the top of the daily sales, weekly sales, annual sales and total sales charts. Total Sales Ranking As a person who grew up listening to Jay Chou songs, I am

Singers also look at the times Read More »

Hu Xijin tweeted that “If the interception is ineffective, Pelosi’s plane can be shot down”

Original link: https://www.williamlong.info/archives/6879.html On July 29, 2022, Pelosi led a delegation to visit Asia. Facing the news that Pelosi might visit Taiwan, Hu Xijin, the former editor-in-chief of the Global Times, tweeted that if Pelosi visits Taiwan, the PLA’s expulsion will be invalid. shoot down. This article sparked heated discussions, and then Twitter locked Hu

Hu Xijin tweeted that “If the interception is ineffective, Pelosi’s plane can be shot down” Read More »

0730 – Halving Filter

Original link: https://atjason.com/daily/2022-07-30.html Too many things to do, don’t know which to do first? Cut the time you can invest in half, and it will be clearer. To put it another way, the resources are not tight enough, the time is too abundant, and the freedom is too much, and I do not have the

0730 – Halving Filter Read More »

How to read cookies in JavaScript

read cookies The content of the cookie can be read directly through document.cookie: var strCookie = document . cookie ;  At this point, strCookie is a string consisting of the name/value pairs of all cookies under the domain name, and the name/value pairs are separated by “semicolon and space”. For easy viewing, you can use

How to read cookies in JavaScript Read More »

return in ajax does not take effect

Writing return directly in ajax in the function addSglr() method does not take effect; Because it returns the success method in ajax, not addSglr(). Therefore, a global variable can be set for judgment to achieve the effect of stopping. Note: Ajax must be synchronous. function addSglr(){ var flag = false;//Global variable for the following judgment

return in ajax does not take effect Read More »