error: RPC failed; curl 18 transfer closed with outstanding read data remaining

摘要: error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PRO 阅读全文
posted @ 2024-11-24 17:01 少杨 阅读(11) 评论(0) 推荐(0) 编辑

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

摘要: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools in 阅读全文
posted @ 2024-11-24 16:51 少杨 阅读(7) 评论(0) 推荐(0) 编辑

/usr/local/Cellar/ruby/3.3.6/lib/ruby/3.3.0/rubygems.rb:259:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)

摘要: 问题: /usr/local/Cellar/ruby/3.3.6/lib/ruby/3.3.0/rubygems.rb:259:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::Ge 阅读全文
posted @ 2024-11-24 16:50 少杨 阅读(19) 评论(0) 推荐(0) 编辑

ionic 本地即时native测试

摘要: ionic 本地native测试 ionic cap run android --livereload --external --public-host=192.168.2.178 res/xml/network_security_config.xml <?xml version="1.0" enc 阅读全文
posted @ 2024-11-09 23:17 少杨 阅读(1) 评论(0) 推荐(0) 编辑

ionic android http 不能访问

摘要: ionic android http 不能访问,解决安卓不能访问http的问题 修改:capacitor.config.ts import type { CapacitorConfig } from '@capacitor/cli'; const config: CapacitorConfig = 阅读全文
posted @ 2024-11-09 12:13 少杨 阅读(2) 评论(0) 推荐(0) 编辑

ts 单例模式

摘要: ts 单例模式 class AudioManage { static audio: AudioManage|null = null constructor(){ console.log("constructor") } static Instance(){ // Audio.audio = new 阅读全文
posted @ 2024-11-05 11:21 少杨 阅读(2) 评论(0) 推荐(0) 编辑

python PyPDF2 切割PDF文件

摘要: python PyPDF2 切割PDF文件 from PyPDF2 import PdfReader, PdfWriter def split_pdf(in_file,out_file,orientation="vertical",percent=0.5): """ :param in_file: 阅读全文
posted @ 2024-10-21 12:30 少杨 阅读(13) 评论(0) 推荐(0) 编辑

android TextToSpeech status -1

摘要: android TextToSpeech status -1. 报错 在 manifest 里面添加,和 Application 平级<queries> <intent> <action android:name="android.intent.action.TTS_SERVICE" /> </in 阅读全文
posted @ 2024-09-20 20:03 少杨 阅读(25) 评论(0) 推荐(0) 编辑

warning: remote HEAD refers to nonexistent ref, unable to checkout

摘要: warning: remote HEAD refers to nonexistent ref, unable to checkout 检查出文件 git checkout main 阅读全文
posted @ 2023-11-06 15:50 少杨 阅读(109) 评论(0) 推荐(0) 编辑

python 实现 pdf 转为图片

摘要: 1 import fitz 2 import os 3 from PIL import Image 4 5 def convert_pdf2img(file_relative_path): 6 7 page_num = 1 8 filename = file_relative_path.split( 阅读全文
posted @ 2023-08-09 20:16 少杨 阅读(386) 评论(0) 推荐(0) 编辑