V2EX iHTCboy 的所有回复 第 1 页 / 共 1 页
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX    iHTCboy    全部回复第 1 页 / 共 1 页
回复总数  14
没什么。努力学习吧
2023-01-25 17:34:59 +08:00
回复了 Greatshu 创建的主题 分享发现 小米手机用户慎重升级 MIUI 12.5
今天才发现这个问题,国内的安卓商店没有的 app ,想用 google play 下载,才发现打不开了。。。。
2021-02-28 17:29:30 +08:00
回复了 xloger 创建的主题 程序员 吐槽一下 App 上架国内应用市场
太坑了,腾讯应用宝还要上传 32 位应用,这坑的不行,还要版权证明。算了,还是华为厚道,已经在测试审核了,腾讯要完吧,决定不在上腾讯,没有用的东西!
2020-09-22 10:57:02 +08:00
回复了 shawnzhong 创建的主题 Apple Apple DTK 细节流出
用 Apple Configurator 2 还原 DTK 失败,

在论坛看到,需要注意点:
这 2 软件需要 beta 版本:
Apple Configurator beta 4 or 5
Xcode 12 beta 6 or 12.2 beta


否则就会遇到报错:
The operation couldn’t be completed. (AMRestoreErrorDomain error 10 - Failed to handle message type StatusMsg) [AMRestoreErrorDomain 0xA (10)]


其实官网有教程:

https://download.developer.apple.com/Documentation/Universal_App_Quick_Start_Program_Resources/Restoring_Developer_Transition_Kit.pdf

### Restoring Developer Transition Kit
Instructions
1. Download and Install prerequisites
- Your host Mac may be running macOS Catalina 10.15.5 or later
- Dwnload Xcode 12 beta 1 and Apple Configurator 2.13 beta 1 from developer.apple.com
- Launch Xcode 12 beta 1 and allow components to install
- Quit Xcode 12 beta 1 and launch Apple Configurator 2.13 beta 1 2. Place the device in DFU mode
- Shutdown the device
- Unplug the power cable
- Hold the Power button
- While holding the power button, reconnect the power cable - Continue holding the power button for 2-3 seconds
3. Connect to Host Mac
- Use a USB-C cable (USB-C charge cable is fine)
- Connect to USB-C port closest to HDMI port on the device - Launch Apple Configurator 2.13 beta 1
- Ensure the device is present in the devices window
4. Restoring the device
- Drag the IPSW file dowloaded from developer.apple.com over to the device
- Select “Restore” from the alert that appears
- The restore process will now begin. The restore process will take some time. Even if the Apple Configurator progress bar isn’t moving, progress is being made. You should also see a progress bar on the device if a display is connected
- The progress sheet in Configurator may not dismiss until the device is in macOS Setup Assistant
2020-08-26 20:12:24 +08:00
回复了 leeiio 创建的主题 macOS 无法更新到 macOS 10.15.3,有相同遭遇的没?
发现最新的 macOS 10.15.6 在这里下载啊 [Apple - 技术支持 - 下载]( https://support.apple.com/zh_CN/downloads)
2020-03-09 14:52:13 +08:00
回复了 qianyi0129 创建的主题 问与答 如何下载 m3u8 视频?
格式没有了-x-,还是补一个原格式的: https://gist.github.com/iHTCboy/ba60fab028de5eff266dd3e70d70eff2
2020-03-09 14:50:55 +08:00
回复了 qianyi0129 创建的主题 问与答 如何下载 m3u8 视频?
Python 来一波!

```python3

import os
import requests

# 下载 m3u8 格式的视频
def download_m3u8(video_download_url, multimedia_path):
print("start download video")
all_cOntent= requests.get(video_download_url).text # 获取 M3U8 的文件内容
file_line = all_content.split("\n") # 读取文件里的每一行
length = len(file_line)
print('video length:', length)
# 通过判断文件头来确定是否是 M3U8 文件
if file_line[0] != "#EXTM3U":
raise BaseException(u"非 M3U8 的链接")
else:
unknow = True # 用来判断是否找到了下载的地址
for index, line in enumerate(file_line):
if "EXTINF" in line:
unknow = False
# 拼出 ts 片段的 URL
pd_url = video_download_url.rsplit("/", 1)[0] + "/" + file_line[index + 1]
res = requests.get(pd_url)
print(length, '-', index)
with open(multimedia_path, 'ab') as f:
f.write(res.content)
f.flush()
if unknow:
raise BaseException("未找到对应的下载链接")
else:
print("video download finish~")


```
当然还有一个遥不可及的问题。10000 年问题( Year 10000 Problem,简称 Y10K )是所有软件可能在表示五位数年份时发生的问题的总称。在 2000 年问题引起人们关注的一段时间中,10000 年问题曾被以幽默的方式被人们在媒体中披露。实际上,在 10000 年时,由于未来科技及软件的进步-不再只以少数几个数字表示年份,这可能不再是个问题。

关于时间的故事真多!更搞笑的是,日本在 2019 年改元为令和时,不但要更改年号,而且昭和时代年号计算的“新千年虫”(昭和 100 年)马上就要来临!

1999 年年底,在全世界程序员在为千年虫问题焦虑的的时候,日本程序员却灵机一动:如果继续沿用昭和( 1926 年开始)年号的话,千年虫会足足延后 25 年(延至 2025 年)。

详细可看 [为什么改元“令和”,竟然成了日本程序员的魔咒?_凤凰网科技_凤凰网]( https://tech.ifeng.com/c/7mMvXe6e4T0)
2038 年问题 又叫 Unix 千年臭虫 或 Y2K38 错误。

32 位元作业系统上,此「 time_t 」资料模式使用一个有正负号的 32 位元整数( signed int 32 )储存计算的秒数。

也就是最大值(二进制):01111111 11111111 11111111 11111111

换成十进制(时间戳):2147483647 (秒)

换成北京时间:2038-01-19 11:14:07

过了那个时间后,由于整数溢出


时间值将作为负数来存储:10000000 00000000 00000000 00000000

系统会将日期读为 1901 年 12 月 13 日,而不是 2038 年 1 月 19 日!

到那一天,使用标准时间库的 C 程序会开始出现日期问题!

当然

新的 64 位元运算器可以记录有正负号的 64 位元整数,可以将日期延长至今后的 2920 亿年!

北京时间:292,277,026,596 年 12 月 4 日 23:30:08

最后

32/64 位操作系统、32/64 位应用程序和 32/64 位整型类型之间是个什么关系呢?
2019-07-14 16:47:35 +08:00
回复了 Maxzel 创建的主题 新手求助 写 App 真难,还是前端简单
web 不太可能原生,原生本质是安卓和 iOS 的系统 API。跨平台方案都是对系统 API 的封装,如果你不懂原生,那么用 rn 或 flutter 也好,都是很难调试的。学吧,什么都学点,没坏处~
2019-07-03 18:46:01 +08:00
回复了 tangqiaoboy 创建的主题 iDev 关于iOS程序的反汇编
尽量在 6 年后看到巧哥! 666
2019-06-11 11:44:09 +08:00
回复了 Livid 创建的主题 iDev Apple 推出了一个系统级别的 Font Awesome - SF Symbols
对于个人开发者来说,非常方便啊,不需要找图标啦~
2019-05-30 10:42:28 +08:00
回复了 ityouknow 创建的主题 Java 3 年,阅读量 100 万+, Github Star 15000+
膜拜大佬,这就是坚持的力量和结果,我也在坚持着!虽然我写 iOS~
2019-05-30 10:42:01 +08:00
回复了 ityouknow 创建的主题 Java 3 年,阅读量 100 万+, Github Star 15000+
膜拜大佬,这就是坚持的力量和结果,我也在坚持着!虽然我不写 java~
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2977 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 28ms UTC 13:35 PVG 21:35 LAX 06:35 JFK 09:35
Do have faith in what you're doing.
ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86