hulooq 最近的时间轴更新
hulooq

hulooq

V2EX 第 527478 号会员,加入于 2021-01-08 15:43:52 +08:00
今日活跃度排名 22589
hulooq 最近回复了
6 天前
回复了 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"。
15 天前
回复了 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 只是你没看到而已。
23 天前
回复了 githmb 创建的主题 GitLab GitLab 可以装在 windows 上吗?
建议你放弃,不合适。
推荐 wp ,你说的专题,找到一款合适的主题就行。
问就是市容市貌😂
> 来自 gemini-pro 的回答:

```
`sleep` 命令会在 `rclone` 执行后立即执行,而不会等到 `rclone` 复制完毕。因此,上述命令执行完毕需要 20 分钟,而不是 30 分钟。
```
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4860 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 09:44 · PVG 17:44 · LAX 02:44 · JFK 05:44
Developed with CodeLauncher
♥ Do have faith in what you're doing.