V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  vivisidea  ›  全部回复第 24 页 / 共 36 页
回复总数  705
1 ... 20  21  22  23  24  25  26  27  28  29 ... 36  
2023 年 5 月 9 日
回复了 rivercherdeeeeee 创建的主题 程序员 黑客反反复复入侵
不重装系统?这个必须重装吧,趁机把业务整到容器里去跑
2023 年 5 月 8 日
回复了 dudubaba 创建的主题 程序员 今年想把房贷还完躺平的念头越来越重
37 岁跟你想法一样,贷款有 300 多个……家里两老人还没医保(只有农村医保),软肋也还小,曾经幻想 40 多岁能退休躺着。。也只能是幻想了
2023 年 5 月 8 日
回复了 vulgur 创建的主题 程序员 独立开发周记 #12:尔虞我诈的互联网
朋友圈转发截图生成工具
==
还有这等好东西!收藏+1
2023 年 5 月 8 日
回复了 Al0rid4l 创建的主题 Windows 谁给讲讲 Win11 有啥优点,好让我继续用下去
win11 bug 也太多了,休眠后唤醒,win + s 搜索经常会挂掉,我都想重新装 win10
2023 年 5 月 6 日
回复了 baoyinhe 创建的主题 问与答 现在存储向量数据库都用什么,哪种是未来的趋势?
@lchynn 我没仔细看 redis 检索的实现原理,但在 kv 应用场景,一般可以控制 key 的驱逐策略,比如可以用 noeviction 策略,拒绝新的写入,或者 LRU 把最老的 evict 掉

https://redis.io/docs/reference/eviction/

The exact behavior Redis follows when the maxmemory limit is reached is configured using the maxmemory-policy configuration directive.

The following policies are available:

noeviction: New values aren’t saved when memory limit is reached. When a database uses replication, this applies to the primary database
allkeys-lru: Keeps most recently used keys; removes least recently used (LRU) keys
allkeys-lfu: Keeps frequently used keys; removes least frequently used (LFU) keys
volatile-lru: Removes least recently used keys with the expire field set to true.
volatile-lfu: Removes least frequently used keys with the expire field set to true.
allkeys-random: Randomly removes keys to make space for the new data added.
volatile-random: Randomly removes keys with expire field set to true.
volatile-ttl: Removes keys with expire field set to true and the shortest remaining time-to-live (TTL) value.
2023 年 5 月 6 日
回复了 baoyinhe 创建的主题 问与答 现在存储向量数据库都用什么,哪种是未来的趋势?
刚好在隔壁看一篇关于用 openai embedding 来做检索的文章,里面有提到这个

向量数据库选项包括:

Pinecone ,完全托管的向量数据库
Weaviate ,开源向量搜索引擎
Redis ,向量数据库
Qdrant ,向量搜索引擎
Milvus ,用于可扩展相似性搜索的向量数据库
Chroma ,开源的嵌入向量存储

source
https://zhuanlan.zhihu.com/p/619233637
2023 年 5 月 5 日
回复了 Tearia 创建的主题 Linux 配置个 ubuntu 的 VNC 花了一下午还没弄好
xrdp 这个好用,比 vnc 好用,windows 可以直接连,我翻了下之前记录的笔记,没碰到什么问题阿,我的系统是 xubuntu ,应该跟 ubuntu 没啥区别


#安装 xrdp
sudo apt install xrdp

#Xrdp 使用 /etc/ssl/private/ssl-cert-snakeoil.key,它仅仅对“ssl-cert” 用户组成语可读。运行下面的命令,将 xrdp 用户添加到这个用户组:
sudo adduser xrdp ssl-cert

#重启就能使用
sudo systemctl restart xrdp
2023 年 4 月 10 日
回复了 neowong2005 创建的主题 问与答 使用成本低的打印机推荐
我在用佳能 G3800 墨仓式的,平时给娃打些幼儿园用的材料,偶尔打打照片,我估计这个墨水量小学都够用
2023 年 4 月 10 日
回复了 LitSu 创建的主题 问与答 亲戚欠钱一直拖着不还,怎么办?
活该活该活该,看着都生气,碍于个 p 的亲戚,人家可没当你是亲戚
2023 年 4 月 9 日
回复了 jeremylai 创建的主题 程序员 服务器内存占用很高,找不到具体的进程
可能是内核的内存泄露,重启试试。。。
2023 年 4 月 3 日
回复了 rookiex 创建的主题 职场话题 被打了绩效 c,会有什么影响吗
问清楚理由呗,打完绩效不面谈的?
2023 年 4 月 3 日
回复了 niselover 创建的主题 Python [ Python ] 求一个无缝连续播放视频和音频的方案
需求不是特别明确,这些文件格式编码是什么?是一致的么?

已有的信息,如果我来搞的话,我会考虑把片段转成统一的封装和编码,比如都转成 mp4 或者 ts
然后直接用 ffmpeg 拼接成一个大文件
v2ex.com 发帖问“你们博客怎么推广的?”,同时,附上自己的博客地址
2023 年 2 月 23 日
回复了 XentaiZ 创建的主题 程序员 [求助]网络映射地址是否有办法实现新文件提醒?
这种需求可以试试问问 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()


```
2023 年 2 月 23 日
回复了 p1956 创建的主题 PHP 刷新保留输入框的字
2023 年 2 月 23 日
回复了 misaka 创建的主题 程序员 我是一个 90 后,工作 8 年,已经裸辞准备躺平了
没有小孩可太自由了,年轻就是好,我上有老下有小想躺都躺不下来
2023 年 1 月 23 日
回复了 JNotEnoughW 创建的主题 问与答 求求有婚姻经验的老哥,可以指点一下家里的事
@JNotEnoughW 如果选择继续在一起,以后鸡毛蒜皮的事情,只会多不会少,特别是有娃之后,父母身体不好之后
建议慎重考虑

你跟你老婆,必须站到一起,去面对这些问题
如果内部都出现分歧了,那就没得搞了
2023 年 1 月 23 日
回复了 qazwsxkevin 创建的主题 问与答 寻一个能在 win 命令行下可生成按要求随机码的.exe?
@qazwsxkevin 你这需求应该直接找一个批量改名的软件

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

ps 。随便找的,没有用过,仅供参考
2023 年 1 月 23 日
回复了 edis0n0 创建的主题 问与答 预算 1 万元,求推荐适合上班摸鱼看电影的笔记本
带去联想、华为这些实体店挑一台价格合适,外观喜欢的即可,这需求不需要考虑性价比,现在啥电脑看不了电影阿。。
2023 年 1 月 23 日
回复了 dearroy 创建的主题 问与答 ChatGPT Pro 版在小规模内测了,你会为此付费吗?
我估计肯定会有人购买再包装一下 api 二次贩卖的,坐等
1 ... 20  21  22  23  24  25  26  27  28  29 ... 36  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   998 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 19:31 · PVG 03:31 · LAX 11:31 · JFK 14:31
♥ Do have faith in what you're doing.