[VFP] 讀ini檔案
1 | ******************** |
demo config ini file
1 | [section] |
1 | ******************** |
demo config ini file
1 | [section] |
- connection retry policy
- works great with async
- four modes
- DefaultExcutionStrategy
- DefaultSqlExecutionStrategy
- DbExecutionStrategy
- SqlAzureExecutionStrategy
- throws RetryLimitExceededException
##Configuration
1 | public class MyConfiguration : DbConfiguration |
when use vs2013 deploy website to azure.
error message
1 | The type initializer for 'Microsoft.Web.Microsoft.Web.Deployment.DeploymentManager' threw an exception. The type initializer for 'Microsoft.Web.Microsoft.Web.Deployment.BuiltinTypesCache' threw an exception. |
fix:
uninstall dbsqlpackage provider . this packages no longer support.
reference url - Thinktecture.IdentityModel Sample Owin
取得最新的Mono http://www.mono-project.com/download/
Building Mono From a Git Source Code Checkout
To build Mono in 64 bit mode instead use:
1 | PATH=$PREFIX/bin:$PATH |
經過一段時間的實驗. 在別的framework找到可以讓backend的route支援angular html5mode了. 基本方式是如果我路由規則沒有定義的,全部指向index頁面(有ng-view的)
所以基於這個原則. mvc的路由規則就要稍微調整一下. 將原本的DefaultApp修改一下
1 | // 舊 |
然後新增
1 | routes.Add(new SingleRoute()); |
SingleRoute Class
1 | public class SingleRoute : RouteBase |
Client angular side:
1 | $stateProvider |
以上
HTML裡有也Element是沒有辦法focus, 原因是因為它們預設的tabindex是-1 所以要讓他們能focus, 只要改變tabindex=0. 就可以了
1 | <span tabindex=0>something</span> |
when use ngCordova socialSharing plugin. there is a method 『canShareVia』 which can share to specific social application by it’s appPackageName.
To Line(http://line.me) the packageName is jp.naver.line.android
1 | var lineAppPackageName = 'jp.naver.line.android'; |
Response::Download() in Laravel 4.x needs php_fileinfo extension. Sometimes web hosting server doesn’t have that extension on, althought it’s default for php 5.4.
so the way to work around is make a response, and add header to it. See code below
1 | $file = File::get($filepath); |
之前有寫過一篇有關[Laravel] Laravel with Angular, 但是這個方法在Laravel 5.0裡面是不合用的
所以laravel 5.0的作法如下 在 app/Exceptions/Handler.php 裡修改render function
1 | public function render($request, Exception $e) |
這個效果等於laravel 4.x的app::missing