V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  hulooq  ›  全部回复第 1 页 / 共 2 页
回复总数  39
1  2  
64 天前
回复了 um6uih 创建的主题 NAS jellyfin 刮削问题,有没有大佬让我少走点弯路
mp ,你值得拥有
@cksspk 懂了,还有个生孩子警告,拿捏!
欢迎来到伏地魔家族
@JasperHale 不是间谍又是什么呢,未经同意即采集,就是间谍,无论其他。
94 天前
回复了 acorngyl 创建的主题 程序员 请教下大家什么是“全栈”
就是一个人干 3 个人以上的活。
95 天前
回复了 guoguobaba 创建的主题 云计算 怪不得大家都爱用云服务了
制造障碍,创造商业模式。
你在找免费劳工呢。。。
123 天前
回复了 lizhengbo 创建的主题 问与答 组团买个岛怎么样?
买下来以后你是准备撂荒做慈善吗?
mp+qb/tr+emby/jellyfin+ [PT] ,括号里是重点😂
145 天前
回复了 bler 创建的主题 计算机 有没有噪音小点的笔记本
mac:我是谁,我在哪?
214 天前
回复了 hulooq 创建的主题 VXNA 申请收录博客: www.huluohu.com
请问是不符合收录条件吗?
早买早享受啊,而且 M 系列性能提升也已经差不多了,M4 也不会比 M3 提升太多
349 天前
回复了 dreamHigh 创建的主题 iPhone iPhone 骚扰电话的一些提问
专注模式设置啊
2024-03-22 18:21:50 +08:00
回复了 lidayl 创建的主题 MacBook Pro Java 内存占用
1. 启用 Instant Run

Instant Run 可增量编译和部署代码,减少编译时间和内存使用。
2. 调整 Gradle 设置

减少 maxHeapSize 和 minHeapSize Gradle 属性,在 Android Studio 的启动脚本中添加 -Xmx 和 -Xms 参数,将其设置为较低的值(例如 1024m )。
禁用 dexOptions.preDexLibraries ,因为它会增加内存使用。
3. 优化代码

避免创建大量对象和垃圾。
使用 final 和 static 修饰符来提高性能。
优化算法和数据结构。
4. 配置 Android Studio

在 "Preferences > Build, Execution, Deployment > Compiler" 中,将 "Compile Java Bytecode" 设置为 "Incremental"。
在 "Preferences > Editor > General > Appearance" 中,禁用 "Show Line Numbers" 和 "Show Method Separators"。
2024-03-13 22:24:01 +08:00
回复了 proxychains 创建的主题 问与答 关于私有化部署的 license
调系统时间,那程序里跟时间有关的不都 gg 了吗
gemini-pro 写的代码:

```python
import os
import PyPDF2

def scan_pdf_files(directory):
"""Scans a directory of PDF files and identifies non-normal PDF files.

Args:
directory: The directory to scan.

Returns:
A list of non-normal PDF files.
"""

non_normal_pdf_files = []

# Iterate over the files in the directory.

for file in os.listdir(directory):

# Check if the file is a PDF file.

if file.endswith(".pdf"):

# Try to open the PDF file.

try:
pdf_file = open(os.path.join(directory, file), "rb")
except:
# The PDF file could not be opened, so it is non-normal.

non_normal_pdf_files.append(file)
continue

# Try to read the PDF file.

try:
pdf_reader = PyPDF2.PdfFileReader(pdf_file)
except:
# The PDF file could not be read, so it is non-normal.

non_normal_pdf_files.append(file)
continue

# Check if the PDF file is encrypted.

if pdf_reader.isEncrypted:
# The PDF file is encrypted, so it is non-normal.

non_normal_pdf_files.append(file)

# Return the list of non-normal PDF files.

return non_normal_pdf_files


if __name__ == "__main__":

# Get the directory to scan from the user.

directory = input("Enter the directory to scan: ")

# Scan the directory for non-normal PDF files.

non_normal_pdf_files = scan_pdf_files(directory)

# Print the list of non-normal PDF files to the console.

print("The following PDF files are non-normal:")

for file in non_normal_pdf_files:
print(file)

```
把 reCaptcha 攻破就饶过了。
反正,不是正经公司会干的事儿,赶紧走吧,要不迟早从犯。
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2584 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 49ms · UTC 03:11 · PVG 11:11 · LAX 20:11 · JFK 23:11
Developed with CodeLauncher
♥ Do have faith in what you're doing.