V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  gcdsss  ›  全部回复第 1 页 / 共 2 页
回复总数  29
1  2  
刚从那回来,注意地铁交通,跟着谷歌地图去看, 西瓜卡覆盖城市地铁,新干线快速线去 klook 上买
3 天前
回复了 fine886 创建的主题 职场话题 劳动仲裁后续
打赢不难,执行难
4 天前
回复了 lanweizhujiao 创建的主题 游戏 有没有巨好玩的游戏推荐
塞尔达旷野, 近几年唯一治好了我电子阳痿
我踩过坑,解决方法,写一个多线程兼容的 handler 去处理

`
class MultiCompatibleTimedRotatingFileHandler(TimedRotatingFileHandler):
def doRollover(self):
if self.stream:
self.stream.close()
self.stream = None
# get the time that this sequence started at and make it a TimeTuple
currentTime = int(time.time())
dstNow = time.localtime(currentTime)[-1]
t = self.rolloverAt - self.interval
if self.utc:
timeTuple = time.gmtime(t)
else:
timeTuple = time.localtime(t)
dstThen = timeTuple[-1]
if dstNow != dstThen:
if dstNow:
addend = 3600
else:
addend = -3600
timeTuple = time.localtime(t + addend)
dfn = self.baseFilename + "." + time.strftime(self.suffix, timeTuple)
# 兼容多进程并发 LOG_ROTATE
if not os.path.exists(dfn):
f = open(self.baseFilename, "a")
fcntl.lockf(f.fileno(), fcntl.LOCK_EX)
if not os.path.exists(dfn):
os.rename(self.baseFilename, dfn) # 释放锁 释放老 log 句柄
f.close()
if self.backupCount > 0:
for s in self.getFilesToDelete():
os.remove(s)
if not self.delay:
self.stream = self._open()
newRolloverAt = self.computeRollover(currentTime)
while newRolloverAt <= currentTime:
newRolloverAt = newRolloverAt + self.interval
# If DST changes and midnight or weekly rollover, adjust for this.
if (self.when == "MIDNIGHT" or self.when.startswith("W")) and not self.utc:
dstAtRollover = time.localtime(newRolloverAt)[-1]
if dstNow != dstAtRollover:
if (
not dstNow
): # DST kicks in before next rollover, so we need to deduct an hour
addend = -3600
else: # DST bows out before next rollover, so we need to add an hour
addend = 3600
newRolloverAt += addend
self.rolloverAt = newRolloverAt
`
自己调节,没有谁有义务去承受你的负能量,伴侣如果不理解你的话也没法,自己想办法去调节吧
96 天前
回复了 Jaie 创建的主题 Local LLM mac 有什么方案本地跑 ai 字幕
为啥我这跑起来识别不出来英文 CastingWords
同配置 9950x, x870, 4080s,上周刚配的,水冷随便压,最新的 bios 和 win11 ccd 延迟小了很多,基本不存在延迟的问题了
120 天前
回复了 rivercherdeeeeee 创建的主题 路由器 2024 路由器推荐(稳定性很重要)
我当初买了个 ax6s 刷了 op, 容量小的可怜,也不稳定,差不多用了一年多忍不了了直接一步到位上 n1000, 虚拟机 op 稳得一批
128 天前
回复了 bantianys 创建的主题 OpenAI 大陆的 Azure openai 终于被彻底封了?
我也收到了
刚换的 16p 信号用的真觉得还可以,之前的 14p 没信号的地方都有了,浏览打开东西基本都是秒开了
134 天前
回复了 cinlen 创建的主题 硬件 第一次攒机,能否帮忙看看配置
主板为啥搞这么贵的,b650 够了
134 天前
回复了 gcdsss 创建的主题 Apple macOS15 摸鱼功能
@windirt 不只是 b 站,这个手机里面所有应用都能用啊,你这个只是单个 b 站而已
135 天前
回复了 gcdsss 创建的主题 Apple macOS15 摸鱼功能
xcode 不是有模拟器么,这个日常使用我觉得就是用来摸鱼的,方便的很
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1564 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 40ms · UTC 16:46 · PVG 00:46 · LAX 08:46 · JFK 11:46
Developed with CodeLauncher
♥ Do have faith in what you're doing.