blchen的空间 https://blchen.com 让我们走进云的世界 Sat, 29 Feb 2020 18:14:15 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 237707960 Azure Web App配置Angular缓存Header https://blchen.com/azure-web-app-config-header-cache-for-angular-app/ https://blchen.com/azure-web-app-config-header-cache-for-angular-app/#respond Sat, 29 Feb 2020 18:13:27 +0000 http://blchen.com/?p=1213 记录下https://www.azurespeed.com前端从Angular 1升级到Augualr 8以后的的几个部署变化细节

  1. index.html需要配置用不缓存
  2. 静态资源如css,js,webpack时候都会带上hashtag,所以可以设置一个常的过期时间
  3. Azure Web App底层是IIS,所以需要用web.config配置,可以修改angular.json让webpack打包包含web.config
]]>
https://blchen.com/azure-web-app-config-header-cache-for-angular-app/feed/ 0 1213
Azure Web App使用免费SSL证书 https://blchen.com/azure-web-app-free-ssl/ https://blchen.com/azure-web-app-free-ssl/#respond Thu, 27 Feb 2020 18:22:47 +0000 http://blchen.com/?p=1202 Azure Web App支持免费证书,记录下www.azurespeed.com启用证书步骤

  1. 在Azure Web App里,找到菜单TLS/SSL settings,先点中 Private Key Certificates (.pfx) ,然后点Create App Service Managed Certificates
  1. 在弹出的创建表单里,选中需要证书的域名,点击创建
  1. safd
  2. asdf
  3. asfd

]]>
https://blchen.com/azure-web-app-free-ssl/feed/ 0 1202
美国Avis租车被多收20美金的高速费 https://blchen.com/avis-car-rental-over-charge/ https://blchen.com/avis-car-rental-over-charge/#respond Fri, 04 Oct 2019 15:26:25 +0000 http://blchen.com/?p=1192 前2天吃午饭的时候听Yuqing童鞋说她出差的时候只走了一次高速,但是信用卡上被Avis多收了20美金。我突然想起前几个月去西雅图的时候也走了一次520高速,赶紧也查了一下信用卡账单,果不其然,也中招了。

我隐约记起租车的时候又提到e-tolls的服务,但是我提车的时候是没有选这个服务的。上网大概查了一下,Avis还真有这么一个条款:https://www.avis.com/en/products-and-services/services/avis-e-toll,里面的这句话解释了这个费用的原因:  You automatically opt into our e-Toll service program and will be charged $3.95 for each day of the entire rental period, including any days on which e-Toll is not used, up to a maximum of $19.75 per rental month, plus incurred tolls at the maximum prevailing rates posted by the toll authority. The charges may take 4-8 weeks after the rental to be billed to your credit card/debit card on file. 翻译过来说就是,只要用了一次eToll,整个租车期间每天都会被收3.95美金的费用,最高到19.75封顶。这个费用会在还车后4至8周从信用卡里扣除。

真是霸王条款啊,记录下来当个教训把。

另:eTolls收费的详情可以在这个网站查询。http://www.e-tolls.com/

]]>
https://blchen.com/avis-car-rental-over-charge/feed/ 0 1192
WordPress文件上传大小限制解决方法 https://blchen.com/wordpress-2048kb-upload-size-limitation-solution/ https://blchen.com/wordpress-2048kb-upload-size-limitation-solution/#respond Fri, 04 Oct 2019 14:39:57 +0000 http://blchen.com/?p=1189 这2天把WordPress迁移到新服务器,用的是All-in-One WP Migration插件来搬家,但是搬迁过程遇到一个问题,新的WordPress网站建好了以后,导入备份文件总是失败在上传步骤,提示的错误信息是 超过2048KB错误。

网上的解决方法有非常多,不过还是试了很久才找到一个可以解决的方法,记录如下:

  1. 找到php.ini,如果找不到,可以建一个info.php文件,查看里面的 Configuration File (php.ini) Path 字段。
  2. 修改php.ini文件里的post_max_size和upload_max_filesize,默认值2M表示当前文件限制2MB。
比如我要导入的文件有100多MB了,我就把上传文件的大小限制改成200MB。
upload_max_filesize = 200M
post_max_size = 200M

]]>
https://blchen.com/wordpress-2048kb-upload-size-limitation-solution/feed/ 0 1189
Azure DevOps添加Task新状态 https://blchen.com/azure-devops-add-new-state-to-work-item/ https://blchen.com/azure-devops-add-new-state-to-work-item/#comments Wed, 24 Oct 2018 01:50:55 +0000 http://52.229.157.159/?p=1171 Azure DevOps默认的Task只有4个状态,分别是To Do, In Progress, Done, Removed。很多时候我们会需要一些额外的状态来更好的区分task,比如

  • 添加一个Triage状态,标示Task需要先review在做分配
  • 添加一个Testing状态,标示Task里的功能已经完成,可以测试

Azure DevOps允许用户自由定制workflow,对Task,Bug,Backlog进行扩展,下面是给Task的State增加一个新字段的具体操作

  1. 打开Azure DevOps管理门户,在首页点左下角的Organization settings
  2. image
  3. 点击Board下的Process,在右边找到要修改的模板,点击
  4. image
  5. 找到要修改的work item type,点击
  6. 点击State tab,点+New State添加新状态即可
  7. image
]]>
https://blchen.com/azure-devops-add-new-state-to-work-item/feed/ 11553 1171
使用阿里云Maven库 https://blchen.com/use-alibaba-cloud-maven/ https://blchen.com/use-alibaba-cloud-maven/#comments Sun, 03 Dec 2017 08:28:45 +0000 http://52.229.157.159/?p=1151 在C:\Users\{username}\.m2\下创建一个settings.xml文件,内容如下

<?xml version=”1.0″ encoding=”UTF-8″?>

<settings xmlns=”http://maven.apache.org/SETTINGS/1.0.0″

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=”http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd”>

<mirrors>

<!– 阿里云仓库 –>

<mirror>

<id>alimaven</id>

<mirrorOf>central</mirrorOf>

<name>aliyun maven</name>

<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>

</mirror>

</mirrors>

</settings>

]]>
https://blchen.com/use-alibaba-cloud-maven/feed/ 11453 1151
iPhone输入键盘不显示的解决方法 https://blchen.com/fix-iphone-keyboard-not-showing/ https://blchen.com/fix-iphone-keyboard-not-showing/#comments Tue, 24 Oct 2017 13:32:19 +0000 http://52.229.157.159/?p=1145
  • 多数情况是因为有蓝牙设备引起的。把蓝牙关闭后,键盘就会出现了
  • 如果1不行,重启iOS
  • 如果2也不行,恢复出厂设置
  • ]]>
    https://blchen.com/fix-iphone-keyboard-not-showing/feed/ 14128 1145
    美国签证不在新护照上EVUS的正确登记方式 https://blchen.com/enroll-evus-if-us-visa-is-in-old-passport/ https://blchen.com/enroll-evus-if-us-visa-is-in-old-passport/#comments Thu, 28 Sep 2017 06:29:39 +0000 http://52.229.157.159/?p=1142 这次出差的时候护照换了新的,但是十年美国签证在旧的护照上,EVUS的规定是护照换了即使EVUS没过期也需要重新登记。记录一下正确的登记方式,帮助有需要的童鞋。

    关键点就是在填写旅行文件信息的这个页面的时候,里面有一个问题是您旅行时所使用的护照是否含有您的美国签证,这个问题需要选不是,选了后系统就提示让你输入旧护照的信息,按照系统提示把包含美国签证的旧护照信息提交就可以了。

    image

    ]]>
    https://blchen.com/enroll-evus-if-us-visa-is-in-old-passport/feed/ 12001 1142
    Visual Studio 2017制作离线安装包 https://blchen.com/visual-studio-2017-offline-install-package/ https://blchen.com/visual-studio-2017-offline-install-package/#respond Sat, 09 Sep 2017 05:57:17 +0000 http://52.229.157.159/?p=1136 Visual Studio 2017开始,不在提供ISO版本,只有一个web installer的exe安装包了,这对于需要在内网安装VS的用户来说很不方便,因为需要自己去制作这个离线安装包了。下面是具体步骤:

    • 下载VS 2017的exe安装文件
    • 确定需要做到离线包里的工作负载(对应英文版的名字是Workload),如果不确定需要装哪些组件,可以运行一下exe安装包,从安装向导的UI里确定一下。完整的workload id列表可以从这个页面查找image

    打开命令行窗口,这里我想做的是一个中文的安装包,包含DotNet桌面开发,ASP.NET和DotNet Core这些workload,具体命令如下。这个命令会自动下载所有需要的文件,到本地的c:\vs2017.3,运行完毕后这个文件夹就可以用来做VS的离线安装了。

    C:\DelMe>mu_visual_studio_enterprise_2017_version_15.3_x86_x64_11100063.exe --layout C:\vs2017.3 --lang zh-CN --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetCoreTools

    image

    参考文档

    • https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio
    ]]>
    https://blchen.com/visual-studio-2017-offline-install-package/feed/ 0 1136
    TFS服务器删除搜索组件 https://blchen.com/remove-search-service-from-tfs-server/ https://blchen.com/remove-search-service-from-tfs-server/#comments Sat, 19 Aug 2017 22:35:48 +0000 http://52.229.157.159/?p=1129 升级TFS服务器到TFS 2017以后,发现TFS经常会出现OutOfMemory的错误,排查了一下,罪魁祸首居然是Elastic Search。TFS 2017开始,如果启用代码搜索功能,TFS会在本地装一个Elastic Search来做索引代码。

    %IN3Q1[5[`EY9HYAJK]I87Q

    这篇博文记录一下在TFS服务器移除搜索服务以及Elastic Search的过程:

    1. 先打开TFS管理控制台,左边选择TFS服务器名字,然后点右边窗口里的删除特性,弹出框里选择Team Foundation搜索服务,点删除

    H]251NV2$Q58$5O58%JVQ$G

    1. 删除环境变量SEARCH_ES_INDEX_PATH里定义的文件夹,这会删除所有的Search索引
    2. 删除环境变量SEARCH_ES_INDEX_PATH和ES_HEAP_SIZE
    3. 运行Configure-TFSSearch.ps1 remove,删除Elastic Search

    image

    ]]>
    https://blchen.com/remove-search-service-from-tfs-server/feed/ 749 1129