V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  hulooq  ›  全部回复第 1 页 / 共 2 页
回复总数  26
1  2  
早买早享受啊,而且 M 系列性能提升也已经差不多了,M4 也不会比 M3 提升太多
23 天前
回复了 dreamHigh 创建的主题 iPhone iPhone 骚扰电话的一些提问
专注模式设置啊
47 天前
回复了 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"。
56 天前
回复了 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 攻破就饶过了。
反正,不是正经公司会干的事儿,赶紧走吧,要不迟早从犯。
你这种判断未免太片面了,每个 LLM 都有自己的缺陷,你不能说你在 A 上发现的 BugA 在 B 上没有,就说 A 垃圾,毕竟 B 上的 BugB 只是你没看到而已。
63 天前
回复了 githmb 创建的主题 GitLab GitLab 可以装在 windows 上吗?
建议你放弃,不合适。
推荐 wp ,你说的专题,找到一款合适的主题就行。
问就是市容市貌😂
> 来自 gemini-pro 的回答:

```
`sleep` 命令会在 `rclone` 执行后立即执行,而不会等到 `rclone` 复制完毕。因此,上述命令执行完毕需要 20 分钟,而不是 30 分钟。
```
72 天前
回复了 poporange 创建的主题 问与答 刀郎新歌,歌词是真狠啊
客观上曲难听,歌词上。。。跟他刀郎关系不大(难道不是洗稿蒲松龄?)
反正推荐电车的都缺根弦
72 天前
回复了 dtla 创建的主题 程序员 一道 Java 八股,检测 AI 智商
> gemini-pro 的回复

**How do you deal with the error?**

1. **Identify the error.**
2. **Determine the cause of the error.**
3. **Fix the error.**
4. **Test the fix to ensure that the error is resolved.**
5. **Document the error and the fix.**
6. **Implement measures to prevent the error from recurring.**
IINA or   splayer
带坏了整个圈子,你说为什么?
国内谁正经用邮箱谈生意
保存在个人 NAS
77 天前
回复了 Authorization 创建的主题 科技 关于对讲机的传输距离 5000 公里
5000 公里的对讲机?先不说是真是假吧,就这通信距离,我看刑😂
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5202 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 46ms · UTC 01:08 · PVG 09:08 · LAX 18:08 · JFK 21:08
Developed with CodeLauncher
♥ Do have faith in what you're doing.