Yaohong

为了真相不惜被羞辱

Distribution failed with errors When developing ios App

Distribution failed with errors When developing ios App Distribution failed with errors: Asset validation failed The product archive is invalid. The Info.plist must contain a LSApplicationCategoryType key, whose value is the UTI for a valid category. For more details, see "Submitting your Mac apps to the App Store". (ID: 67f59c1b-bb08-4694-978f-11d07ff31357) Solve this issue by add following codes on <project root folder>/macos/Runner/Info.plist: <key>LSApplicationCategoryType</key> <string>public.app-category.productivity</string> the value of LSApplicationCategoryType refer https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype

Flutter HTTP host maven.google.com is not reachable in Windows

Flutter HTTP host https://maven.google.com/ is not reachable in Windows 10 It shows the following error messages after executing flutter doctor in terminal prompt in Windows 10. Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1586], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [√] Chrome - develop

Understanding arange, unsqueeze, repeat, stack methods in Pytorch

Understanding arange, unsqueeze, repeat, stack methods in Pytorch torch.arange(start=0, end, step=1) return 1-D tensor of size (end-start)/step which value begin from start and each value take with common differences step. torch.unsqueeze(input, dim) return a new tensor with a dimension of size one insterted at specified position; A dim value within the range [-input.dim() - 1, input.dim() + 1) can be used. tensor.repeat(size*) return a tensor; the new shape of tensor is that original shape multiplied by arguments correspondingly, if the number of paramter don’t match the original shape, then last dimension of new shape = the last dimension of original shape * last paramter;

L1 L2 Regularization - Optimizer

Optimizer: L1 L2 Regularization L1,L2 Loss function mean different type of loss function. L1: sum(Y-f(x)) lasso L2: sum(Y-f(x))^2 Ridge L1, L2 regularization : Y_predict = E(w_i(x_i)+b_i) MES = E(Y-Y_predict)^2 L1: loss = MSE + 入E|w_i| L2: loss = MES + 入E(w_i)^2 What does penalize the weights? It means add another parameters to the loss function, so

Github API Basic Authentication Example

Github API Basic Authentication Example 1.Generate Personal access tokens Open this page Generate Personal access tokens and click Generate new token to get a token; 2.Use access token to request Github REST api 2.1 Install requests with pip; pip install requests 2.2 Sustitute GITHUB_API_USER_NAME with your user name and GITHUB_API_PERSONAL_TOKEN with the token you got in step one, then run the following code; from requests import Request, Session from requests.exceptions import ConnectionError, Timeout, TooManyRedirects def getRateLimit(): url = 'https://api.

How to extract knowledge?

How to extract knowledge? I held the opinion before that to do knowledge extraction can be done only by summarizing, but it is not a good way. In contrast, put the knowledge back to a concrete scenario will work for user understandings. I used to thought common truths are the most valuable of knowledge, but perhaps we need the knowledge with personal experiences. Because it contains the problem that the author face and the way how one to think, while summary knowledge is only the result of thinking.

How to face the investment risk?

How to face the investment risk? Investment risk is the expectation loss of our investment. It is difficult to calculate the probability of loss sometimes, but we can assume that the loss have happened, then try to find out the reason of loss. Before investing, we can try to answer the following two questions: 1.What cause the price of properties fall 50%? Liquidity risk Credit risk

Use Opencv stitching_detailed To Stitch Segmentation image

Use Opencv stitching_detailed To Stitch Segmentation image Environment: python version 3.7 opencv-python version 4.5.1.48 1.Download stitching_detailed file save it with file name stitching_detailed.py; 2.Run the command; $python.exe stitching_detailed.py image_1.png image_2.png image_3.png image_4.png image_5.png image_6.png image_7.png image_8.png image_9.png origin.png --features=brisk --matcher=affine Note that: image 1~9 is Segmentation images and origin.png is a full picture. REFERENCE: stitching_detailed stitching_detailed.py source codes is follow: """ Stitching sample (advanced) =========================== Show how to use Stitcher API from python.

How to categorize our money

How to categorize our invest money? I think sleep peacefully at in night is the most important thing when we do the investment. I don’t need to worry about that I can’t pay my next monthly rent for the apartment after investing. I believe that to avoid wake up at midnight is categorize our money. We can divide our cash into four categories. The first category is called daily cash, it used to pay our daily cost.

Futures learning notes 001

Futures learning notes 001 Futures Futures are derivate financial contract that obligate the parties to transact an asset at a predetermined future date and price. The buyer must purchase or the seller must sell the underlying asset at the set price, regardless of the current market price at the expiration date. futures can exchange in Shanghai Futures Exchange Shanghai Futures Exchange can exchange follow futures: Copper, Copper(BC), Lead, Zinc, Aluminium, Nickel, Tin

从个人角度的行业划分

从个人角度的行业划分 衣食住行 衣(必):服装、个护 食(必):农业、餐饮、 住(必):房产、家电(+联网+智能)、 行:车、物流、公共交通 医师作息 医

高等数学主要内容

高等数学主要内容 一、空间解析几何与向量代数 空间直角坐标系 向量的概念及其线性; 向量坐标、向量的数量积; 平面方程、直线方程; 曲面方程、曲线方程;

高等数学主要内容

高等数学主要内容 一、空间解析几何与向量代数 空间直角坐标系 向量的概念及其线性; 向量坐标、向量的数量积; 平面方程、直线方程; 曲面方程、曲线方程;

广东家常菜做法记录

原味、好吃

广东家常菜 豆豉排骨 食材: 排骨一根(约350g) 豆豉(5克 约覆盖的碗底) 香菇(10g 约覆盖的碗底) 土豆(80g) 酱油(5ml) 盐(3克) 水(1

深度学习-第一个数字识别项目

深度学习的步骤过程

深度学习-第一个数字识别项目 今天按Google官方推荐流程,整理了开发模板,不是所有深度学习都严格按这个模板来实现,不同项目步骤有所删减,但

Echo set color

Echo set color 先看例子:echo -e "\033[32m Hello world \033[0m"; 会输出 $echo -e "\033[32m Hello world \033[0m" Hello world # 绿色的文字 其中: -e表示解析逃逸字符(Escape character),逃逸字符为

How to use CleanWhite Hugo Theme?

How to use CleanWhite Hugo Theme? CleanWhite Hugo Theme 是Huabing Zhao制作的hugo主题,非常高雅好用,再次感谢Huabing。 我在使用时,花了一点时间,主要遇到以下问