Home

Android 刷机

Android 刷机 ** 刷机前一定做好系统备份, 特别是recovery 刷包, 不然又要刷官方recovery 刷底包, 来回折腾 ** 进入fastboot模式方法: 1. 按住音量下键, 插入数据线 2. 按住音量下键和电源键, 插入数据线 1. Android 刷机前需要解锁 进入fastboot模式 // 查看是否解锁 fastboot oem get-bootinfo // 解锁 fastboot oem unlock 1109463729125518 2. 选择ROM ATH-UL00 机锋 ROM之家 这些ROM刷机不太可靠,并且必须保证机型和型号对应, 注意机器的网络版本(全网通,双网通) 3. ...

Read more

Javaweb 上传及下载文件

Javaweb 上传及下载文件 1. 下载文件 1. Controller @RequestMapping(value = "/t20/reportDownload", method = RequestMethod.GET, produces = "application/json;charset=UTF-8") @ResponseBody public String reportDownload(HttpServletRequest request, HttpServletResponse response) { return t20Service.reportDownload(request, response); } 2. Response response.se...

Read more

Java html转pdf

Java itext html转pdf 1. 代码 <!--pdf--> <dependency> <groupId>org.xhtmlrenderer</groupId> <artifactId>core-renderer</artifactId> <version>R8</version> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId>...

Read more

iOS 备份与恢复

iOS 备份与恢复 1. macOS 备份文件保存地址 ~/Library/Application Support/MobileSync/Backup 2. 恢复备份 恢复备份需要关闭设备查找我的设备功能, 该功能关闭需要Apple ID

Read more

Linux WSL

Linux WSL 1. 使用xrdp Run Kali Linux on Windows 10 1. wget https://kali.sh/xfce4.sh chmod -x xfce4.sh sudo ./xfce4.sh sudo /etc/init.d/xrdp start #!/bin/bash echo "[+] Installing XFCE4, this will take a while" apt-get update apt-get dist-upgrade -y --force-yes apt-get --yes --force-yes install kali-desktop-xfce xorg xrdp echo "[+] Configuring...

Read more

Xcode 11

Xcode 问题 1. 找不到Assistant Editor模式 1. 在storyboard中使用 ctrl + alt + command + enter 2. 使用`Add Editor on Right` 2. Xcode11 SceneDelegate iOS 13前 App Delegate 管理 App Lifecycle 和 UI Lifecycle iOS 13后 App Delegate 管理 App Lifesycle 和 Scene Lifecycle, 而 Scene Lifecycle 管理 UI Lifecycle. application didFinishLaunchingWithOptions 无效, 转交给 scene w...

Read more

iOS 系统兼容

iOS 系统兼容 9.0 1. Safe Area Layout Guide before ios 9.0 9.0 前使用Top Layout Guide和Bottom Layout Guide进行约束, 11中被弃用 , 9.0 使用Safe Area. 为了兼容8.0, 需要使用Top Layout Guide 和 Bottom Layout Guide 1. storyboard中选择ViewController 2. File inspector中`Builds for` 选择 `iOS 9.0 and Later` 3. 去掉`Use Safe Area Layout Guides` 11.0 1. WKWebView before iOS 11....

Read more

FLutter 发布配置

FLutter 发布配置 发布前需要修改应用的基本信息, 应用名, 应用ID, 应用Icon, 应用启动页, 应用版本名, 应用版本编号 其中应用Icon和应用启动页需要单独配置(iOS在Xcode中, android在AndroidManifast中) 应用启动页也可以使用flutter_launcher_icons插件来生成 iOS 1. 应用名称 Xcode 中Display Name 为Runner, 这里不能修改, 会导致Flutter工具使用失常. 直接修改Info.plist中CFBundleName字段 2. 应用ID Xcode Bundle Identifier字段修改 3. 版本名称和版本号 Xcdoe中可...

Read more