RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / 问题

全部问题

Martin Hope
MA TE
Asked: 2025-03-17 18:47:51 +0000 UTC

windows 7下编译pyqt5的问题

  • 4

我编写了代码,使用了 pyqt5、线程、asyncio。我编译了一个可执行文件,并且由于代码还需要一个图像和一个带有地址的文件,因此我使用 inno setup 编译了一个安装程序。适用于 Windows 8。安装、检查,一切正常。我在 Windows 10 上安装了它,检查了一下,它可以运行。我给了用户 Windows 7,他安装了它,启动了它,结果:在此处输入图片描述 它不起作用。请帮帮我。代码和安装程序位于: https://github.com/MATE-linux/Youtube-app-with-nodpi

python
  • 1 个回答
  • 24 Views
Martin Hope
Yulia
Asked: 2025-03-17 16:49:58 +0000 UTC

如何获取 UEFI/BIOS 制造日期?

  • 4

需要从程序(用 C 编写)获取 UEFI/BIOS 制造/组装日期。

该程序设计专门在 Windows 10/11 下运行。

我已经使用下面的代码获得了 UEFI/BIOS 版本。在注册表中手动搜索后,我没有找到“Date BIOS”的单独键。 Windows注册表中是否有这样的信息?或者 WinAPI 工具(至少是最简单的工具)还不够吗?

#include <stdio.h>
#include <Windows.h>

int main(int argc, char* argv[])
{
    HKEY rKey;
    TCHAR Reget[256];
    DWORD RegetPath = sizeof(Reget);
    RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"HARDWARE\\DESCRIPTION\\System\\BIOS", NULL, KEY_QUERY_VALUE, &rKey);
    RegQueryValueEx(rKey, L"BIOSVersion",NULL,NULL, (LPBYTE)&Reget,&RegetPath);
    printf("%ls", Reget);
    getchar();
    return 0;
}

(代码不是我的;由 stackoverflow 用户 @Marchosias 发布)

c
  • 1 个回答
  • 26 Views
Martin Hope
Евгений
Asked: 2025-03-17 09:09:15 +0000 UTC

在 Vimwiki 中导航标签搜索

  • 5

Vim 的 Vimwiki 插件有一个命令:VimwikiSearchTags NameTag,当调用该命令时,它会带您到找到的第一个注释,并在左下角以“1 of 7”的形式显示找到的注释数量。

问题:如何浏览这 7 条注释?

手册没有提及任何有关此的内容:https://github.com/vimwiki/vimwiki/blob/master/doc/vimwiki.txt#L993

在相关问题https://vi.stackexchange.com/a/24413的帖子中建议使用CTR+]和CTR+o,但我不明白这些命令背后的逻辑。

更新型多巴胺

我偶然发现了一篇文章https://gopherproxy.meulie.net/box.matto.nl/0/usingvimwikitags.txt其中说运行命令后:VimwikiSearchTags NameTag你可以输入:lnext或:lprevious浏览笔记。您也可以输入:lopen来打开笔记列表。

换句话说,事实证明:VimwikiSearchTags NameTag它的工作方式与类似:vim /NameTag/g ./**/*.md | :copen,但没有:copen。实际上,这个问题可以算是结束了,但是,我仍然会感谢任何提示,因为我知道在 Vim 中总是有几种方法可以解决问题。

плагин
  • 1 个回答
  • 35 Views
Martin Hope
Tosha Tatosha
Asked: 2025-03-17 04:05:41 +0000 UTC

光线追踪

  • 7

在有关光线追踪的文章中,总是给出球体的例子,因为它由一个简单的方程定义,但是其他图元呢?当光栅化时,假设任何表面都由三角形近似,这是可以理解的。但如何使用光线追踪来渲染人的脸部尚不清楚;这个相同的表面需要用某种方程来表示吗?也就是说,我想了解在具有光线追踪渲染的引擎中场景是如何定义的,如果在使用经典光栅化渲染的引擎中,场景被定义为一组三角形。

3d
  • 1 个回答
  • 128 Views
Martin Hope
Maxim Timakov
Asked: 2025-03-17 02:31:24 +0000 UTC

通过在 OpenOCD 中添加 Flash ID 修复未知闪存设备错误

  • 5

尝试调试 RP2040(R-Pi Pico)上的固件时,OpenOCD 给出错误“错误:未知闪存设备(ID 0x00184068)”

该板有一个存储芯片“BY25Q128ES - 128M BIT SPI NOR FLASH”

在Raspberry Pi 论坛上,他们讨论了修补文件src/flash/nor/spi.c 的必要性

我找到了内存芯片的数据表,但我不太明白我需要在其中查找哪些参数才能正确填写FLASH_ID

宏本身创建该类型的对象flash_device并具有签名:

/// @file: src/flash/nor/spi.h

/* data structure to maintain flash ids from different vendors */
struct flash_device {
    const char *name;
    uint8_t read_cmd;
    uint8_t qread_cmd;
    uint8_t pprog_cmd;
    uint8_t erase_cmd;
    uint8_t chip_erase_cmd;
    uint32_t device_id;
    uint32_t pagesize;
    uint32_t sectorsize;
    uint32_t size_in_bytes;
};

#define FLASH_ID(n, re, qr, pp, es, ces, id, psize, ssize, size) \
{                                   \
    .name = n,                      \
    .read_cmd = re,                 \
    .qread_cmd = qr,                \
    .pprog_cmd = pp,                \
    .erase_cmd = es,                \
    .chip_erase_cmd = ces,          \
    .device_id = id,                \
    .pagesize = psize,              \
    .sectorsize = ssize,            \
    .size_in_bytes = size,          \
}
/// @file: src/flash/nor/spi.c

// ....

 /* Shared table of known SPI flash devices for SPI-based flash drivers. Taken
  * from device datasheets and Linux SPI flash drivers. */
const struct flash_device flash_devices[] = {
    /* Note: device_id is usually 3 bytes long, however the unused highest byte counts
     * continuation codes for manufacturer id as per JEP106xx.
     *
     * All sizes (page, sector/block and flash) are in bytes.
     *
     * Guide to select a proper erase command (if both sector and block erase cmds are available):
     * Use 4kbit sector erase cmd and set erase size to the size of sector for small devices
     * (4Mbit and less, size <= 0x80000) to prevent too raw erase granularity.
     * Use 64kbit block erase cmd and set erase size to the size of block for bigger devices
     * (8Mbit and more, size >= 0x100000) to keep erase speed reasonable.
     * If the device implements also 32kbit block erase, use it for 8Mbit, size == 0x100000.
     */
    /*        name                  read qread  page  erase chip  device_id   page   erase   flash
     *                              _cmd _cmd   _prog _cmd* _erase            size   size*   size
     *                                          _cmd        _cmd
     */
    FLASH_ID("st m25pe10",          0x03, 0x00, 0x02, 0xd8, 0x00, 0x00118020, 0x100, 0x10000, 0x20000),
//....
    FLASH_ID("st m25p05",           0x03, 0x00, 0x02, 0xd8, 0xc7, 0x00102020, 0x80,  0x8000,  0x10000),
//...
    FLASH_ID("sp s25fl512s",        0x13, 0x00, 0x12, 0xdc, 0xc7, 0x00200201, 0x200, 0x40000, 0x4000000),

在这种情况下,什么是“pagesize和” sectorsize?

在闪存芯片的数据表中它应该叫什么?

c
  • 1 个回答
  • 33 Views
上一页
下一页

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5