2021
+2021
+2021
+2020
此文将讨论acg.watch网站的定位,运营模式,以及潜在应用等。
This article will discuss the positioning, operating mode, and potential applications of the acg.watch website.
缘由
自从18年第一次尝试建站以来,追求流媒体播放服务一直是我所追求的目标。
历史
从2018年三月,我第一次通过腾讯云Win Server 2012实现了对摇曳露营第3集的发布,从而使其能够在网页上访问。到2018年9月,基于video.js,我第一次搭建了一个视频网站,使用华为云对象存储以及mysql数据库进行集中管理,并将其发布在video.yimian.xyz。2018年11月,配合树莓派3B以及一个红外摄像头,我通过推流实现了对宿舍的24小时监控。2019年2月,我购买了acg.watch这个域名,并将视频站转移至此。此后,我站视频被爬多次,由于华为云存储巨额的流量费用,我觉定暂时停止公开提供服务。2019年11月,在英国,我重构了视频站,不再使用华为云存储这个烧钱的服务,转而寻求onedrive存储方案。此外,新的视频站不再拥有后端,而是使用file-cache机制通过分析onedrive的视频目录自动生成数据集。2020年8月,随着ushio用户系统竣工,视频站开始支持为用户提供个性化服务,包括跨设备播放记录同步等。2021年1月,确定acg.watch的发展方向为多功能在线播放器,此外网站还将提供番剧搜寻功能。同时,考虑到版权问题,我之前私藏的所有视频全部转为私有,只有认证过的朋友们才有权限观看。
网站地址
定位
Acg.Watch视频站拥有三个发展定位:
- 番剧资源辅助搜索
- 多功能视频播放器
- IoTcat的私藏视频站
发展状态
网站将持续开发,欢迎大家常来踩踩呀(:з」∠)
Reason
Since the first attempt to build a website in 18 years, the pursuit of streaming media playback services has always been my goal.
History
From March 2018, I realized the release of the third episode of Sway Camp through Tencent Cloud Win Server 2012 for the first time, so that it can be accessed on the web. By September 2018, based on video.js, I built a video website for the first time, used Huawei Cloud object storage and mysql database for centralized management, and published it on video.yimian.xyz. In November 2018, with the Raspberry Pi 3B and an infrared camera, I realized 24-hour monitoring of the dormitory through push streaming. In February 2019, I purchased the domain name acg.watch and transferred the video site to it. Since then, my site’s video has been crawled many times. Due to the huge traffic cost of Huawei Cloud storage, I feel that I will temporarily stop publicly providing services. In November 2019, in the United Kingdom, I restructured the video site and stopped using Huawei Cloud Storage, a money-burning service, and turned to onedrive storage solutions. In addition, the new video station no longer has a backend, but uses the file-cache mechanism to automatically generate a data set by analyzing onedrive’s video catalog. In August 2020, with the completion of the ushio user system, the video station began to provide users with personalized services, including cross-device playback and recording synchronization. In January 2021, the development direction of acg.watch is determined as a multifunctional online player, and the website will also provide a fan drama search function. At the same time, taking into account the copyright issue, all the videos that I have privately collected before are all turned into private ones, and only authenticated friends can watch them.
Website address
Positioning
Acg.Watch video station has three development positions:
- Assisted search for fan drama resources
- Multifunctional video player
- IoTcat’s private video station
Development status
The website will continue to be developed, and you are welcome to step on it often_(:з」∠)_
]]>Ushio V2ray 使用方法。
Ushio V2ray Instruction..
流程总览
- 用户注册
- v2ray软件安装
用户注册
在开始安装软件前,请先前往https://v2ray.yimian.xyz/使用手机号进行账户注册。
v2ray软件安装
本文包含Win10,安卓,IOS/Ipad OS的软件安装方法,请根据相应流程进行安装。
如果您有任何疑惑,请在下方评论中提出!
Win10
下载
- 使用浏览器访问http://eee.dog/8bcc14下载名为
Windows_v2rayN-Core.zip
的压缩文件。
解压
将下载的压缩文件解压到C盘根目录,如下图
如果提示需要管理员权限,请一律选是
配置
请打开C盘中刚才解压的文件夹,找到名为
V2ray
或V2rayN.exe
的程序,双击打开。如下图。找到右下角任务栏,找到下图中的图标,双击打开
选中窗口上方的订阅,点击订阅设置如下图
打开https://v2ray.yimian.xyz并登录,待出现二维码后点击Copy。如下图
回到订阅设置的窗口,将刚才复制的内容粘贴到地址URL框中,勾选启用,点击确定。如下图
点击主窗口上方的参数设置如下图
- 选择V2rayN设置,勾选开机自动启动,点击下方确定。如下图
- 回到主窗口,点击更新订阅如下图
此时,主窗口中会多出一个或几个服务器,如下图
关闭主窗口,右键右下角状态栏中的V2ray,选择服务器->Vmess-Los_Angeles(….。如下图
右键右下角状态栏中的V2ray,选择Http代理->…(PAC模式)。如下图
验证
- 浏览器打开https://google.com试一下能否访问。
Android
下载安装软件
- 浏览器打开http://eee.dog/6db2e3下载V2ray安卓安装包
- 点开安装包进行安装
配置
- 使用手机浏览器,打开https://v2ray.yimian.xyz/,进行登录
- 待页面显示出二维码,点击Copy
- 打开安装的V2rayNG软件,点击左上角三条杠,展开左侧栏,点击订阅设置
- 进入订阅设置页面后,点击右上角加号
- 备注中填ushio, 地址url中填刚才复制的东西,点击右上角对勾。
- 回到主页面,点击左上角三条杠,展开左侧栏,点击设置
- 进入设置页面后,点击分应用代理
- 勾选分应用代理模式,然后在列表中勾选需要访问外网的app,如twitter, youtube等
- 回到主页面,点击右上角三个点,点击更新订阅
- 点一下主页面列表中的Los_Angeles,使其左侧变绿
- 点击主页面右下角的V图标,使其变绿
验证
- 点击主页面下方已连接,点击测试连接语句,检测连接是否成功
Ios
- 在系统设置中更改苹果账户的地区到中国大陆以外的地方,比如英国、美国等。
- 在app store购买并安装Shadowrocket软件
- 使用浏览器打开https://v2ray.yimian.xyz,进行登录
- 待页面显示出二维码,点击Copy
- 打开Shadowrocket软件
- 点击右上角加号
- 类型选择Subscribe
- URL中粘贴刚才复制的东西
- 点击右上角完成
- 点击首页中的api.yimian.xyz,点击Los_Angeles
- 在首页第一行,勾选Los_Angeles
- 使用浏览器访问https://google.com试一下
Process overview
- User registration
- v2ray software installation
User registration
Before installing the software, please go to https://v2ray.yimian.xyz/ to register with your mobile phone number.
v2ray software installation
This article contains software installation methods for Win10, Android, IOS/Ipad OS, please install according to the corresponding process.
Win10
download
- Use a browser to visit http://eee.dog/8bcc14 and download the name
Windows_v2rayN-Core.zip
The compressed file.
Unzip
Decompress the downloaded compressed file to the root directory of drive C, as shown below
If you are prompted to require administrative permissions, please select all yes
Configuration
Please open the folder just unzipped in the C drive, find the program named
V2ray
orV2rayN.exe
, and double-click to open it. As shown below.Find the taskbar in the lower right corner, find the icon in the figure below, double-click to open
Select Subscription at the top of the window, and click Subscription Settings as shown below
Open https://v2ray.yimian.xyz and log in. After the QR code appears, click Copy. As shown below
Go back to the subscription settings window, paste the content you just copied into the Address URL box, check Enable, and click OK. As shown below
Click Parameter Settings at the top of the main window as shown below
- Select V2rayN Settings, tick Autostart at boot, and click OK below. As shown below
- Back to the main window, click Update Subscription as shown below
At this time, there will be one or more servers in the main window, as shown below
Close the main window, right-click V2ray in the status bar at the bottom right corner, and select Server->Vmess-Los_Angeles(….. As shown below
Right-click V2ray in the status bar at the bottom right corner, and select Http Proxy->…(PAC Mode). As shown below
verification
- Open https://google.com in your browser to check if you can access it.
Android
Download and install software
- Open the browser http://eee.dog/6db2e3 to download the V2ray Android installation package
- Click to open the installation package to install
Configuration
- Use your mobile browser to open https://v2ray.yimian.xyz/ and log in
- When the QR code is displayed on the page, click Copy
- Open the installed V2rayNG software, click the three bars in the upper left corner, expand the left column, and click Subscription Settings
- After entering the subscription settings page, click the plus sign in the upper right corner
- Fill in ushio in the remarks, fill in the things you just copied in the address url, and click the tick in the upper right corner.
- Back to the main page, click the three bars in the upper left corner, expand the left column, and click Settings
- After entering the settings page, click Sub App Proxy
- Check the Sub App Proxy mode, and then check the apps that need to access the Internet, such as twitter, youtube, etc.
- Back to the main page, click the three dots in the upper right corner, and click Update Subscription
- Tap Los_Angeles in the main page list to make the left side green
- Click the V icon in the lower right corner of the main page to make it green
verification
- Click Connected at the bottom of the main page, click the test connection statement to check whether the connection is successful
Ios
- Change the Apple account area in the system settings to a place outside of mainland China, such as the United Kingdom, the United States, etc.
- Purchase and install Shadowrocket software in the app store
- Use a browser to open https://v2ray.yimian.xyz and log in
- When the QR code is displayed on the page, click Copy
- Open the Shadowrocket software
- Click the plus sign in the upper right corner
- Type selection Subscribe
- Paste what you just copied in the URL
- Click on the upper right corner to finish
- Click api.yimian.xyz on the homepage, click Los_Angeles
- On the first line of the homepage, check Los_Angeles
- Use a browser to visit https://google.com to try
Ushio V2ray 使用方法。
Ushio V2ray Instruction..
本服务仅向以学术研究为目的学生提供!
本服务非盈利,但可能会根据您的使用情况收取少许费用,来平摊服务器的费用!
流程总览
- 用户注册
- v2ray软件安装
用户注册
在开始安装软件前,请先前往https://v2ray.yimian.xyz/使用手机号进行账户注册。
如确有使用需求,请在注册后将您的学生身份证明和注册手机号发送至i@iotcat.me,在我检查过您的需求合法性后将赋予您使用权限!
v2ray软件安装
本文包含Win10,安卓,IOS/Ipad OS的软件安装方法,请根据相应流程进行安装。
如果您有任何疑惑,请在下方评论中提出!
Win10
下载
- 使用浏览器访问http://eee.dog/8bcc14下载名为
Windows_v2rayN-Core.zip
的压缩文件。
解压
将下载的压缩文件解压到C盘根目录,如下图
如果提示需要管理员权限,请一律选是
配置
请打开C盘中刚才解压的文件夹,找到名为
V2ray
或V2rayN.exe
的程序,双击打开。如下图。找到右下角任务栏,找到下图中的图标,双击打开
选中窗口上方的订阅,点击订阅设置如下图
打开https://v2ray.yimian.xyz并登录,待出现二维码后点击Copy。如下图
回到订阅设置的窗口,将刚才复制的内容粘贴到地址URL框中,勾选启用,点击确定。如下图
点击主窗口上方的参数设置如下图
- 选择V2rayN设置,勾选开机自动启动,点击下方确定。如下图
- 回到主窗口,点击更新订阅如下图
此时,主窗口中会多出一个或几个服务器,如下图
关闭主窗口,右键右下角状态栏中的V2ray,选择服务器->Vmess-Los_Angeles(….。如下图
右键右下角状态栏中的V2ray,选择Http代理->…(PAC模式)。如下图
验证
- 浏览器打开https://google.com试一下能否访问。
Android
下载安装软件
- 浏览器打开http://eee.dog/6db2e3下载V2ray安卓安装包
- 点开安装包进行安装
配置
- 使用手机浏览器,打开https://v2ray.yimian.xyz/,进行登录
- 待页面显示出二维码,点击Copy
- 打开安装的V2rayNG软件,点击左上角三条杠,展开左侧栏,点击订阅设置
- 进入订阅设置页面后,点击右上角加号
- 备注中填ushio, 地址url中填刚才复制的东西,点击右上角对勾。
- 回到主页面,点击左上角三条杠,展开左侧栏,点击设置
- 进入设置页面后,点击分应用代理
- 勾选分应用代理模式,然后在列表中勾选需要访问外网的app,如twitter, youtube等
- 回到主页面,点击右上角三个点,点击更新订阅
- 点一下主页面列表中的Los_Angeles,使其左侧变绿
- 点击主页面右下角的V图标,使其变绿
验证
- 点击主页面下方已连接,点击测试连接语句,检测连接是否成功
Ios
- 在系统设置中更改苹果账户的地区到中国大陆以外的地方,比如英国、美国等。
- 在app store购买并安装Shadowrocket软件
- 使用浏览器打开https://v2ray.yimian.xyz,进行登录
- 待页面显示出二维码,点击Copy
- 打开Shadowrocket软件
- 点击右上角加号
- 类型选择Subscribe
- URL中粘贴刚才复制的东西
- 点击右上角完成
- 点击首页中的api.yimian.xyz,点击Los_Angeles
- 在首页第一行,勾选Los_Angeles
- 使用浏览器访问https://google.com试一下
Process overview
- User registration
- v2ray software installation
User registration
Before installing the software, please go to https://v2ray.yimian.xyz/ to register with your mobile phone number.
v2ray software installation
This article contains software installation methods for Win10, Android, IOS/Ipad OS, please install according to the corresponding process.
Win10
download
- Use a browser to visit http://eee.dog/8bcc14 and download the name
Windows_v2rayN-Core.zip
The compressed file.
Unzip
Decompress the downloaded compressed file to the root directory of drive C, as shown below
If you are prompted to require administrative permissions, please select all yes
Configuration
Please open the folder just unzipped in the C drive, find the program named
V2ray
orV2rayN.exe
, and double-click to open it. As shown below.Find the taskbar in the lower right corner, find the icon in the figure below, double-click to open
Select Subscription at the top of the window, and click Subscription Settings as shown below
Open https://v2ray.yimian.xyz and log in. After the QR code appears, click Copy. As shown below
Go back to the subscription settings window, paste the content you just copied into the Address URL box, check Enable, and click OK. As shown below
Click Parameter Settings at the top of the main window as shown below
- Select V2rayN Settings, tick Autostart at boot, and click OK below. As shown below
- Back to the main window, click Update Subscription as shown below
At this time, there will be one or more servers in the main window, as shown below
Close the main window, right-click V2ray in the status bar at the bottom right corner, and select Server->Vmess-Los_Angeles(….. As shown below
Right-click V2ray in the status bar at the bottom right corner, and select Http Proxy->…(PAC Mode). As shown below
verification
- Open https://google.com in your browser to check if you can access it.
Android
Download and install software
- Open the browser http://eee.dog/6db2e3 to download the V2ray Android installation package
- Click to open the installation package to install
Configuration
- Use your mobile browser to open https://v2ray.yimian.xyz/ and log in
- When the QR code is displayed on the page, click Copy
- Open the installed V2rayNG software, click the three bars in the upper left corner, expand the left column, and click Subscription Settings
- After entering the subscription settings page, click the plus sign in the upper right corner
- Fill in ushio in the remarks, fill in the things you just copied in the address url, and click the tick in the upper right corner.
- Back to the main page, click the three bars in the upper left corner, expand the left column, and click Settings
- After entering the settings page, click Sub App Proxy
- Check the Sub App Proxy mode, and then check the apps that need to access the Internet, such as twitter, youtube, etc.
- Back to the main page, click the three dots in the upper right corner, and click Update Subscription
- Tap Los_Angeles in the main page list to make the left side green
- Click the V icon in the lower right corner of the main page to make it green
verification
- Click Connected at the bottom of the main page, click the test connection statement to check whether the connection is successful
Ios
- Change the Apple account area in the system settings to a place outside of mainland China, such as the United Kingdom, the United States, etc.
- Purchase and install Shadowrocket software in the app store
- Use a browser to open https://v2ray.yimian.xyz and log in
- When the QR code is displayed on the page, click Copy
- Open the Shadowrocket software
- Click the plus sign in the upper right corner
- Type selection Subscribe
- Paste what you just copied in the URL
- Click on the upper right corner to finish
- Click api.yimian.xyz on the homepage, click Los_Angeles
- On the first line of the homepage, check Los_Angeles
- Use a browser to visit https://google.com to try
最近在物联网开发中使用Arduino搭建LoRa网关和节点,发现在调用String时总遇到一些奇奇怪怪的现象。经过排查,发现是由于其它地方[]=运算符的重载所导致。
Recently, I have used Arduino to build LoRa gateways and nodes in the development of the Internet of Things, and I found that some strange phenomena are always encountered when calling String. After investigation, it was found that it was caused by overloading of the []= operator elsewhere.
为了方便,在开发节点时,我们使用了LoRa-Socket和ArduinoJSON作为依赖。我们发现这两个依赖分别使用时表现良好,但如果在同一个项目文件中使用,则会导致一些怪异的问题。
情况一
通过指针调用函数时String参数传递异常。代码如下:
1 | inline static void _onReceived(const String& msg, const String& from, const String& to, const String& type){ |
在这个案例中,我们发现msg等String在此函数中的数值是一切正常的,可是却没有能够成功传递到_f中。经过一系列骚操作,我们得出如下结论:
- 发现如果将String换成int或其它类型,则参数传递至_f一切正常。有问题的只有String和char类型。
- 我们尝试过将String转换为其它类型,再转回,但是没有效果。
- String或char类型全局变量的声明会使单片机崩溃。
- 当我们将ArduinoJSON依赖删去,String参数的传递则一切正常。
我们从而可以得出,这种怪异现象是由于与ArduinoJSON包的冲突所致。
情况二
在使用ArduinoVector制作String类型Vector时,我们也发现了String类型的不稳定现象。神奇的是,这种现象只出现在String的使用中,其它如int类型运作良好。
这些不稳定现象可以总结如下:
- 赋值时被截断
- String值局部乱序
- String值部分乱码
- 作为参数传给函数时会失败,读取出来是空(与案例一类似)
综述
通过上述两个案例,我们可以初步总结出,这是由于[]=赋值运算符的重载与String有冲突。只要使用[]=重新定义String,即有可能出现String怪异的问题。
For convenience, we used LoRa-Socket and ArduinoJSON as dependencies when developing nodes. We found that these two dependencies perform well when used separately, but if used in the same project file, it will cause some weird problems.
Situation One
When calling a function through a pointer, the String parameter passing is abnormal. code show as below:
1 | inline static void _onReceived(const String& msg, const String& from, const String& to, const String& type){ |
In this case, we found that the value of msg and other String in this function is all normal, but it was not successfully passed to _f. After a series of Sao operations, we come to the following conclusions:
- Found that if you change String to int or other types, the parameters passed to _f are all normal. Only the String and char types are problematic.
- We tried to convert String to other types, and then back, but to no avail.
- The declaration of global variables of type String or char will crash the microcontroller.
- When we delete the ArduinoJSON dependency, the passing of String parameters is normal.
We can conclude that this strange phenomenon is caused by the conflict with the ArduinoJSON package.
Situation Two
When using ArduinoVector to make a String type Vector, we also discovered the instability of the String type. The magic is that this phenomenon only occurs in the use of String, other types such as int work well.
These instabilities can be summarized as follows:
- Truncated during assignment
- String values are locally out of order
- Part of the String value is garbled
- It will fail when passed as a parameter to the function, and it will be empty (similar to case 1)
Summary
Through the above two cases, we can preliminarily conclude that this is due to the conflict between the overload of the []= assignment operator and String. As long as you use []= to redefine String, string weird problems may occur.
]]>