<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Windows on 庞玉栋个人博客</title><link>https://pangyd.com/tags/windows/</link><description>Recent content in Windows on 庞玉栋个人博客</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 17 Sep 2026 23:10:18 +0800</lastBuildDate><atom:link href="https://pangyd.com/tags/windows/index.xml" rel="self" type="application/rss+xml"/><item><title>Parallelism, critical windows, and separations among diffusion language models</title><link>https://pangyd.com/post/radar-376/</link><pubDate>Thu, 17 Sep 2026 23:10:18 +0800</pubDate><guid>https://pangyd.com/post/radar-376/</guid><description>&lt;blockquote>
&lt;p>&lt;strong>原文&lt;/strong>：&lt;a href="https://arxiv.org/abs/2609.20539v1">Parallelism, critical windows, and separations among diffusion language models&lt;/a>&lt;/p>
&lt;p>&lt;strong>作者&lt;/strong>：Sitan Chen, Liye Wang&lt;/p>
&lt;p>&lt;strong>来源&lt;/strong>：arXiv cs.LG（机器学习）&lt;/p>
&lt;/blockquote>
&lt;h2 id="正文">正文&lt;/h2>
&lt;p>Computer Science &amp;gt; Machine Learning&lt;/p>
&lt;p>arXiv:2609.20539v1 (cs)&lt;/p>
&lt;p>[Submitted on 17 Sep 2026]&lt;/p>
&lt;p>Title:Parallelism, critical windows, and separations among diffusion language models&lt;/p>
&lt;p>Authors:Sitan Chen, Liye Wang&lt;/p>
&lt;p>View a PDF of the paper titled Parallelism, critical windows, and separations among diffusion language models, by Sitan Chen and 1 other authors&lt;/p>
&lt;p>View PDF&lt;/p>
&lt;p>HTML (experimental)&lt;/p>
&lt;p>Abstract:A popular selling point of diffusion large language models (dLLMs) is their capacity for parallelism: the ability to generate sequences of text far more efficiently than autoregressive models, which require one forward pass per token. Yet among the many competing paradigms for dLLMs, from masked to uniform to Gaussian diffusion, principled understanding of how these different proposals compare in parallelism remains limited. In this work, we initiate a fine-grained comparison of the capacity for parallelism among these three leading approaches and prove the following:&lt;/p></description></item><item><title>猎聘网站爬虫（代理池+邮件提醒+写入flume服务端）</title><link>https://pangyd.com/post/225-flume/</link><pubDate>Thu, 31 Oct 2019 11:44:38 +0800</pubDate><guid>https://pangyd.com/post/225-flume/</guid><description>&lt;pre lay-lang="Python" class="layui-code" skin="notepad"># coding=utf-8
import requests
import re
import time
import json
from demo2 import soct
import pymysql
import random
import smtplib
import email.mime.multipart
import email.mime.text
&lt;p>import socket&lt;/p>class Spider():

 def __init__(self):
 self.ls = []
 self.count = 0
 self.USER_AGENTS = [
 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AcooBrowser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
 "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)",
 "Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.5; AOLBuild 4337.35; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
 "Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)",
 "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)",
 "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
 "Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
 "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN) AppleWebKit/523.15 (KHTML, like Gecko, Safari/419.3) Arora/0.3 (Change: 287 c9dfb30)",
 "Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3) Arora/0.6",
 "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070215 K-Ninja/2.1.1",
 "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/20080705 Firefox/3.0 Kapiko/3.0",
 "Mozilla/5.0 (X11; Linux i686; U;) Gecko/20070322 Kazehakase/0.4.5",
 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6",
 "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11",
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20",
 "Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52",
 ]

 def emial(self):
 try:
 subject = 'python执行日志'
 content = "可用{}个代理ip，所有url已经爬取完毕".format(len(self.ls))
 msg = email.mime.multipart.MIMEMultipart()
&lt;p> msg['from'] = '******@qq.com'&lt;/p></description></item><item><title>智联招聘爬虫+email邮件发送</title><link>https://pangyd.com/post/217-email/</link><pubDate>Mon, 15 Jul 2019 09:04:11 +0800</pubDate><guid>https://pangyd.com/post/217-email/</guid><description>&lt;pre lay-lang="Python" class="layui-code" skin="notepad"># -*- coding: utf-8 -*-
import requests
import re
import time
import json
import pymysql
import random
import smtplib
import email.mime.multipart
import email.mime.text

class Spider():

 def __init__(self):
 self.ls = []
 self.count = 0
 self.USER_AGENTS = [
 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AcooBrowser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
 "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)",
 "Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.5; AOLBuild 4337.35; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
 "Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)",
 "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)",
 "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
 "Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
 "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN) AppleWebKit/523.15 (KHTML, like Gecko, Safari/419.3) Arora/0.3 (Change: 287 c9dfb30)",
 "Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3) Arora/0.6",
 "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070215 K-Ninja/2.1.1",
 "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/20080705 Firefox/3.0 Kapiko/3.0",
 "Mozilla/5.0 (X11; Linux i686; U;) Gecko/20070322 Kazehakase/0.4.5",
 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6",
 "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11",
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20",
 "Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52",
 ]

	#程序执行完毕后发送邮件函数
 def emial(self):
 try:
 subject = 'python执行日志'
 content = "可用{}个代理ip，所有url已经爬取完毕".format(len(self.ls))
 msg = email.mime.multipart.MIMEMultipart()
 msg['from'] = 'xxxxx@qq.com'
 msg['to'] = 'xxxx@qq.com'
 msg['subject'] = subject
 content = content
 txt = email.mime.text.MIMEText(content, 'plain', 'utf-8')
 msg.attach(txt)
 smtpHost = 'smtp.qq.com'
 smtpPort = '25'
 sslPort = '465'

 smtp = smtplib.SMTP_SSL(smtpHost, sslPort)
 smtp.ehlo()
 smtp.login('xxxxx@qq.com', 'xxxxx')
 smtp.sendmail('xxxx@qq.com', 'xxxxx@qq.com', str(msg))
 print("发送成功！")
 smtp.quit()
 except Exception as e:
 print(e)

	#从数据库中查询代理函数
 def sql(self):
 try:
 db = pymysql.connect(host="xxxxxxxxxx", user="xxxxxx", password="xxxxxx", db="xxxxx", port=3306,
 charset="utf8")
 cur = db.cursor()
 sql = "SELECT * FROM proxy WHERE type=0"
 cur.execute(sql) # 执行sql语句
 results = cur.fetchall() # 获取查询的所有记录
 for row in results:
 head = row[0]
 ip = row[1]
 poxy = row[2]
 if str(head) == 'HTTP':
 self.ls.append(ip + ':' + poxy)
 print('可用{}个代理ip，爬虫开始'.format(len(self.ls)))
 self.crawler_data()
 except Exception as e:
 print(e)

	#爬虫入口，负责构建url
 def crawler_data(self):
 i = 0
 for n in ['投资经理', '土建工程师', '采购', '销售', '运营', 'java', '产品经理', '人力资源', '总经理', 'Python', 'iOS', 'PHP', 'Android',
 'UI设计师', '测试工程师', '自动化测试', '功能测试', '性能测试', '测试开发', '硬件测试', '运维工程师', '系统工程师', '网络工程师', '运维开发', 'DBA',
 '技术经理', '架构师', '技术总监', 'CTO', '技术合伙人', '运维总监', '安全专家', '项目总监',
 'Html5', '产品经理', '网页产品经理', '移动产品经理', '产品助理', '数据产品经理', '游戏策划', '电商产品经理']:
 try:
 while True:
 url = 'https://www.liepin.com/zhaopin/?industryType=&amp;amp;jobKind=&amp;amp;sortFlag=15°radeFlag=0&amp;amp;industries=&amp;amp;salary=&amp;amp;compscale=&amp;amp;key={}&amp;amp;clean_condition=&amp;amp;headckid=4a4adb68b22970bd&amp;amp;d_pageSize=40&amp;amp;siTag=p_XzVCa5J0EfySMbVjghcw~fA9rXquZc5IkJpXC-Ycixw&amp;amp;d_headId=62ac45351cdd7a103ac7d50e1142b2a0&amp;amp;d_ckId=62ac45351cdd7a103ac7d50e1142b2a0&amp;amp;d_sfrom=search_fp&amp;amp;d_curPage=0&amp;amp;curPage={}'.format(
 n, random.randint(1, 20))
 self.request_job_list(url)
 print(url)
 i = i + 1
 if i == 10:
 i = 0
 break
 except Exception as e:
 print(e)
 self.emial()

	#接受传递来的url 进行解析页面数据，传递数据给下一个函数
 def request_job_list(self, url):
 try:
 print(url)
 headers = {
 'Referer': 'https://www.liepin.com/',
 'User-Agent': random.choice(self.USER_AGENTS)
 }
 reponse = requests.get(url, proxies={'http': random.choice(self.ls)}, headers=headers, timeout=5)
 ret = random.uniform(0, 2)
 time.sleep(ret)
 pattern = re.compile('&lt;div class="job-info">'
 '.*?&lt;h3.*?title="(.*?)">.*?&lt;a href="(.*?)" .*?title="(.*?)">.*?&lt;/a>&lt;p class="company-name">&lt;a href="(.*?)" .*?title="(.*?)">.*?&amp;gt;(.*?)&lt;/a>.*?&lt;/p></description></item><item><title>tomact自启动设置</title><link>https://pangyd.com/post/17-tomact/</link><pubDate>Sat, 29 Jul 2017 11:56:14 +0800</pubDate><guid>https://pangyd.com/post/17-tomact/</guid><description>&lt;p>&lt;span>	&lt;/span>该部分内容来源于网络，本人测试，功能正常，留下备忘。&lt;/p>&lt;p>&amp;nbsp;&lt;/p>&lt;p>&lt;strong>&lt;span>	&lt;/span>适用于&lt;span class="hl1">Tomcat&lt;/span>4.1、5.5、6.0。&lt;/strong>&lt;/p>&lt;br>&lt;p>因为解压缩版的&lt;span class="hl1">Tomcat&lt;/span>，在windows服务上没有启动项，所以需要手动添加，然后可以设置开机启动&lt;span class="hl1">tomcat&lt;/span>。&lt;/p>&lt;p>一、安装服务&lt;/p>&lt;p>在命令行中进入/&lt;span class="hl1">Tomcat&lt;/span>路径/bin/，执行“service.bat install”：（开始-运行,输入cmd,cd&lt;span class="hl1">Tomcat&lt;/span>路径/bin,service.bat install）。到此为止windows服务上就增加了一个&lt;span class="hl1">tomcat&lt;/span>服务&lt;/p>&lt;p>?&lt;/p>&lt;p>说明：&lt;/p>&lt;p>1、服务名和显示名称：service.bat中设置了默认的服务名称，不同版本分别命名为&lt;span class="hl1">Tomcat&lt;/span>4、&lt;span class="hl1">Tomcat&lt;/span>5、&lt;span class="hl1">Tomcat&lt;/span>6，如果需要自定义服务名或服务的显示名称，可在service.bat中修改SERVICE_NAME或PR_DISPLAYNAME；&lt;/p>&lt;p>2、防火墙的影响：/bin/&lt;span class="hl1">tomcat&lt;/span>6.exe（或&lt;span class="hl1">tomcat&lt;/span>4.exe、&lt;span class="hl1">tomcat&lt;/span>5.exe）将被作为服务程序，如果有防火墙，需要设为允许作为服务。&lt;/p>&lt;p>二、卸载服务&lt;/p>&lt;p>在命令行中进入/&lt;span class="hl1">Tomcat&lt;/span>路径/bin/，执行“service.bat remove”：&lt;/p>&lt;p>&lt;a href="https://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html" target="_blank">&lt;/a>&lt;/p>&lt;p>三、命令行参数&lt;/p>&lt;p>&lt;span class="hl1">Tomcat&lt;/span>的服务名、Jvm内存初始值和最大值等可通过命令行参数设置，请参考官方文档：&lt;a href="https://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html" target="_blank">&lt;/a>&lt;/p>&lt;p>http://&lt;span class="hl1">tomcat&lt;/span>.apache.org/&lt;span class="hl1">tomcat&lt;/span>-5.5-doc/windows-service-howto.html&lt;/p>&lt;p>&lt;a href="https://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html" target="_blank">http://&lt;span class="hl1">tomcat&lt;/span>.apache.org/&lt;span class="hl1">tomcat&lt;/span>-6.0-doc/windows-service-howto.html&lt;/a>&lt;/p>&lt;p>?&lt;/p>&lt;p>四、开机启动&lt;span class="hl1">Tomcat&lt;/span>设置&lt;/p>&lt;p>开始-控制面板-管理工具-服务&lt;/p>&lt;p>找到apche&amp;nbsp;&lt;span class="hl1">tomcat&lt;/span>?右键属性，把手动改为自动&lt;/p></description></item></channel></rss>