C# 可配合 Costura.Fody 使用的 SevenZipExtractor

SevenZipExtractor 可以很方便地拿 C# 调用 7z.dll 对文件进行解压缩,对于引用多出来的 .dll 文件,如果能将这一堆文件合并成一个,岂不是美滋滋?!最后,我找到了 Costura.Fody(一个可以将源 .dll 合并到目标 exe 中的引用)目录瞬间整洁无比哇~ 如题,本文将讲述 SevenZipExtractor + Costura.Fody 的具体配置操作。 C# SevenZipExtractor with Costura.Fody

继续阅览

Linux 命令笔记

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
sudo nano /etc/php/7.0/fpm/pool.d/www.conf
sudo nano /etc/nginx/sites-available/default
sudo nano /etc/nginx/nginx.conf

sudo /etc/init.d/nginx restart
sudo /etc/init.d/php7.0-fpm restart

sudo chmod 775 -R [FN]
sudo chown -R root [FN]
sudo chgrp -R root [FN]
sudo vi /etc/php/7.0/fpm/pool.d/www.conf

schtasks /create /tn 任务名 /tr 执行命令 /sc minute /mo 1

sudo nano /etc/php/7.0/fpm/php-fpm.conf
sudo nano /lib/systemd/system/php7.0-fpm.service

jQuery: fire click() before blur() event

Solution 1

Listen to mousedown instead of click.

The mousedown and blur events occur one after another when you press the mouse button, but click only occurs when you release it.

Solution 2

You can preventDefault() in mousedown to block the dropdown from stealing focus. The slight advantage is that the value will be selected when the mouse button is released, which is how native select components work. JSFiddle

继续阅览