大象笔记
UWP 的应用审核还真是像模像样
又一次提交 UWP 审核被拒,原因如下
Notes To Developer
Unfortunately, we can’t test your app, the app's primary functions are not
创建 UWP 应用内广告
在微软 Partner Dashboard 中,选择左侧菜单
Monetize (货币化) - "In-app ads"
https://partner.microsoft.com/dashboard/monetization/
Nginx 直接返回终端请求 IP
直接 Nginx 配置文件中配置即可,无需代码。
```
location /get_ip {
default_type text/plain;
return 200 "$remote_addr\n";
}
C# 的 await / async 关键字
await 关键字,在 async 方法中使用,当主线程调用 async 方法,遇到 await 关键字时,就会挂起。继续执行其他的任务,而不会因为这些耗时操作阻塞其他任务。
例如,要在按钮的点击事件中,进行 HTTP 异步请求
UWP 中 UI 控件 TextBox 与 TextBlock 的区别
TextBox 可读、可写。
TextBlock 为只读。
所以,当只需要展示 read only 的文本结果时,最好使用 TextBlock。
## 方便记忆
这两个很容易混淆,记住带 Box 的是可编辑的,就行。例如
laravel eloquent with, has whereHas 的区别
共同之处,这三个函数的参数,都是 model 中的 relationship function 的名字。
- 1 对 N
- N 对 N
## with
类似于 SQL 中的 left join。左侧数据会全部显示。
laravel backpack time picker 组件 - 基于 element ui
目前正在使用的 backpack 版本并没有 time picker 组件,所以不得不将 element ui 的 time picker 移植过来。
http://element-cn.eleme.io/#/zh-CN/compon
Ubuntu 设置系统启动后默认使用 fish shell
首先[安装 fish shell](https://www.sunzhongwei.com/fish-shell-shell-more-than-the-zsh-is-concise-and-practical)。
查看 fish s
PHP FPM status page
PHP FPM status page 用于查看 PHP FPM 进程池状态。
## php7.0 的配置方法
首先配置 Nginx 的页面路径
```
location /status {
include fas
生成发布 Windows Store 用的 UWP 包文件
VS 的菜单里找不到这个功能,需要右键项目才能找到。
![生成发布 Windows Store 用的 UWP 包文件](https://cdn.sunzhongwei.com/sunzhongwei_5b8165c1a484c?ima