Blog | 博客

Cao Cao Quick Cut (Switch Window Like Boss) – switch windows with upper and lower case keys: soon anyway [Windows]

Original link: https://www.appinn.com/switch-window-like-boss/ Switch Window Like Boss is a Windows tool that uses Caps lock to switch windows. From the prolific @dog , it’s very efficient, saves fingers, and is fast anyway. @Appinn From the Discovery Channel , the names of @ dog ‘s works are very characteristic: Small and Beautiful Backup Station – Automatically […]

Cao Cao Quick Cut (Switch Window Like Boss) – switch windows with upper and lower case keys: soon anyway [Windows] Read More »

Event Sourcing (18): Implementing Idempotent

July 9 14:20~16:20 ▲NotifyBoard implements Idempotent architecture diagram foreword Teddy introduced why Event Handler needs to have Idempotent in <Event Sourcing (16): Event Semantics and Idempotent in Distributed Systems>. This episode takes the Event Handler—NotifyBoard that generates GetBoardContent in the ezKanban system as an example (please refer to <Event Sourcing (10) ): Implement Projector >),

Event Sourcing (18): Implementing Idempotent Read More »

UOJ #77. A+B Problem

Original link: https://www.shuizilong.com/house/archives/uoj-77-ab-problem/ The first is the minimum cut modeling similar to POJ 3469. Dual Core CPU . The difficulty is that for each node i, we need to construct an auxiliary node i’, which is satisfied. If there is a j cut at T that satisfies the condition, then i’ must also be cut

UOJ #77. A+B Problem Read More »

only music lasts forever

Original link: https://hin.cool/posts/guahua.html In the early days of the renovation, I envisioned hanging my favorite movie footage and music albums on one wall. But I don’t know how to design, and I don’t know how to put some pictures with different styles and strong color impact on the same wall. After moving in for a

only music lasts forever Read More »

Go channels and locks

How to communicate between different goroutines? There are two options: 1. Mutex of global variables 2. Use pipeline channel to solve Because there is no lock on the global variable m, there will be a resource contention problem, and an error will occur in the code, prompting concurrent map writes var ( myMap = make(map[int]int,

Go channels and locks Read More »

go tcp programming

There are two types of network programming: 1) TCP socket programming is the mainstream of network programming. The reason why it is called Tcp socket programming is because the bottom layer is based on the Tcp/ip protocol. For example: QQ chat 2) http programming of b/s structure, when we use the browser to access the

go tcp programming Read More »

html video video leave picture in picture event leavepictureinpicture event

The leavepictureinpicture event is fired when the HTMLVideoElement leaves picture-in-picture mode successfully. This event is not cancelable and does not bubble. Syntax Use the event name in methods like addEventListener() , or set an event handler property. addEventListener ( ‘leavepictureinpicture’ … The post html video video exit picture-in-picture event leavepictureinpicture event first appeared on Lenix

html video video leave picture in picture event leavepictureinpicture event Read More »

html js click on blank space to close custom popup layer

Usually to make a custom drop-down box, the expanded div needs to be closed after clicking any blank area $(document).on(‘click’,function(e){ var _con = $(‘.ztree,.js_ztree’); // Set the target area (check elements that do not need to be closed when clicking) if(!_con.is(e.target)&&_con.has(e.target).length === 0){ $(‘.ztree’).hide() } }) … The post html js closing custom popup layer

html js click on blank space to close custom popup layer Read More »

video picture-in-picture (small window)

video picture-in-picture (small window) < video id = “video_paly” controls src = “https://v-cdn.zjol.com.cn/280443.mp4” poster = “https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg” >您的浏览器不支持video 标签。 < / video > < button onClick = { ( ) => { var video : any = document . getElementById ( “video_paly” … The post video Picture-in-Picture (Small Window) first appeared on Lenix Blog . This

video picture-in-picture (small window) Read More »

JavaScript, jQuery’s css method is invalid

I ran into a problem today. Trying to add css attributes to a node through jquery to make it achieve the expected style performance. But it doesn’t work. But in another way. Invalid spelling: //这种写法不生效。 $dom.find(“p.text-p”).css(“-webkit-line-clamp”,3) ; //或$dom.find(“p.text-p”).css({“-webkit-line-clamp”:3}) ; Effective spelling: //此处这个3,可以是个变量。 $dom.find(“p.text-p”).attr(“style”, “-webkit-line-clamp:” + 3); Note that in this case, the css() method does

JavaScript, jQuery’s css method is invalid Read More »

How to replace strings in js

The method of string replacement in js: 1. Use regular expression, the syntax is [str.replace(“string to be replaced”, “new string”)]; 2. Use conventional replacement method, the syntax is [ str.replace(/string to be replaced/g, “new string”)]. Related graphic recommendation: js tutorial The method of string replacement in js: Two methods: regular & regular str.replace(“string to be

How to replace strings in js Read More »