0%

某些版本的Android系统更新后,正常情况下会调用 /system/bin/install-recovery.sh 更新Recovery。 如果使用TWRP等第三方Recovery,recovery-from-boot.p会被重命名为recovery-from-boot.bak,导致该过程无法正常进行。 而官方ROM只有Boot镜像,没有直接提供Recovery镜像,需要手动生成。

根据 /system/bin/install-recovery.sh 的内容,我们可以用 boot.imgrecovery-resource.datrecovery-from-boot.p 生成Recovery镜像。

阅读全文 »

问题描述

最新一代Intel CPU的笔记本电脑默认开启Intel Volume Management Device (VMD),导致以下问题:

  • 安装Windows 10时找不到磁盘驱动器
  • Windows启动时蓝屏(错误代码:Inaccessible_Boot_Device)

修复

步骤:

  • 获取驱动程序
  • 安装驱动
  • 修改驱动加载设置
阅读全文 »

I can't find file `pzdr'

1
sudo apt-get install texlive-fonts-recommended

Windows 修复ESP分区

1
bcdboot C:\Windows

Multi-boot Windows(EFI) via GRUB

https://wiki.archlinux.org/title/GRUB#Windows_installed_in_UEFI/GPT_mode

阅读全文 »

doc to pdf

https://stackoverflow.com/a/6018039

1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
import os
import comtypes.client

wdFormatPDF = 17

in_file = os.path.abspath(sys.argv[1])
out_file = os.path.abspath(sys.argv[2])

word = comtypes.client.CreateObject('Word.Application')
doc = word.Documents.Open(in_file)
doc.SaveAs(out_file, FileFormat=wdFormatPDF)
doc.Close()
word.Quit()
阅读全文 »

Update

Since Ubuntu 18.04 LTS is released, this article may be out of date.

原文

Ubuntu 17.10更新使用了Wayland作为默认显示服务器,并用gdm3代替了lightdm。但这些更新可能导致Intel+Nvidia显卡的电脑(例如笔者的电脑)不能使用nvidia驱动进入桌面。本文简要介绍了如何重新启用nvidia驱动进入桌面。

阅读全文 »

你好,欢迎来到我的个人技术博客。

1
2
3
4
5
6
7
8
#include <iostream>
using std::cout;
using std::endl;
int main()
{
cout<<"Welcome"<<endl;
return 0;
}

My projects

DrawConic 绘制函数图像(SDL界面) SDL_SaveImage 保存SDL_Sueface到图片 native_audio_c4droid …… TicTacToe 井字棋(SDL界面)