vivisidea 最近的时间轴更新
加入了 v2ex,发现这是个不错的圈子,测试 Timeline.
2014-11-16 21:04:42 +08:00
vivisidea

vivisidea

V2EX 第 74348 号会员,加入于 2014-09-18 17:04:23 +08:00
[杭州] 网易易盾招实施交付工程师
酷工作  •  vivisidea  •  2021-06-16 21:12:00 PM  •  最后回复来自 tljobscure
1
OpenWrt 如何针对某一个客户端设置翻墙
Chamber  •  vivisidea  •  2015-11-02 09:49:21 AM  •  最后回复来自 spl2015
3
关于 iCloud 的设定
iCloud  •  vivisidea  •  2015-10-25 11:42:11 AM  •  最后回复来自 vivisidea
1
gitcafe 无法访问,求诊断
问与答  •  vivisidea  •  2015-01-10 13:07:16 PM
vivisidea 最近回复了
v2ex.com 发帖问“你们博客怎么推广的?”,同时,附上自己的博客地址
这种需求可以试试问问 chatgpt ,我感觉是比较能出方案的,我瞎问了一个,你参考参考 :D
```
# write python program to monitor a network directory, if directory changes detected, invoke dingtalk webhook api

import os
import requests

# Set the directory you want to monitor
directory = '/tmp/some_folder'
# DingTalk webhook URL
dingtalk_url = 'https://oapi.dingtalk.com/robot/send?access_token=YOUR_DINGTALK_ACCESS_TOKEN'

# Get the files in the directory
files = os.listdir(directory)
# Get the modified times of the files
modified_times = [os.path.getmtime(os.path.join(directory, file)) for file in files]
# Make a copy of the modified times
previous_times = modified_times.copy()
# Monitor the directory
while True:
# Get the modified times
modified_times = [os.path.getmtime(os.path.join(directory, file)) for file in files] # Compare the modified times
for index, time in enumerate(modified_times):
if time != previous_times[index]:
# Invoke DingTalk webhook
data = {
"msgtype": "text",
"text": {
"content": f"Directory {directory} changed"
}
}
requests.post(dingtalk_url, json=data)
break
# Make a copy of the current modified times
previous_times = modified_times.copy()


```
36 天前
回复了 p1956 创建的主题 PHP 刷新保留输入框的字
没有小孩可太自由了,年轻就是好,我上有老下有小想躺都躺不下来
@JNotEnoughW 如果选择继续在一起,以后鸡毛蒜皮的事情,只会多不会少,特别是有娃之后,父母身体不好之后
建议慎重考虑

你跟你老婆,必须站到一起,去面对这些问题
如果内部都出现分歧了,那就没得搞了
@qazwsxkevin 你这需求应该直接找一个批量改名的软件

https://learn.microsoft.com/zh-cn/windows/powertoys/powerrename
https://www.v1tx.com/post/best-file-rename-software/

ps 。随便找的,没有用过,仅供参考
带去联想、华为这些实体店挑一台价格合适,外观喜欢的即可,这需求不需要考虑性价比,现在啥电脑看不了电影阿。。
我估计肯定会有人购买再包装一下 api 二次贩卖的,坐等
厉害,我一直好奇,抓包分析下协议就能写客户端是怎么做到的。。能分享下细节么
69 天前
回复了 qazwsxkevin 创建的主题 程序员 问, Debian 11 能用上 gcc-4.8.5 吗?
看看 docker 吧,现在资料都很全了,google 搜下就有了,有点概念需要学习下而已,docker 操作本身并不难,而且可能已经有人把你需要的镜像制作好了

学会了 docker 不光是这次编译问题,以后的类似的编译问题都能参考解决,不亏的
关于   ·   帮助文档   ·   博客   ·   nftychat   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   实用小工具   ·   2185 人在线   最高记录 5556   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
Developed with CodeLauncher
♥ Do have faith in what you're doing.