原创 Python 虛擬空間的使用
使用虛擬環境, 可以將當前項目所使用的依賴與電腦中其他 Python 項目的依賴區分開, 避免依賴版本不匹配帶來的問題, 同時也可以防止項目依賴被不當更新. 一,python 自帶的做法 mkdir myproject cd mypro
原创 c#調用matlab製作的dll
方法1:使用matlab com方式調用matlab接口會要求安裝matlab在同一臺機器上,這不符合我們預期。 (https://stackoverflow.com/questions/9780805/where-is-matlab-a
原创 How to Migrate from Microsoft SQL Server to PostgreSQL
One of our clients had a Java-based application stack on Linux that connected to a pretty old version of SQL Server on
原创 Java Programming Tutorial
yet another insignificant programming notes... | HOME TABLE OF CONTENTS (HIDE) 1. Introduction2. Getting Started2
原创 Adding Session support to ASP.NET Web API
First the disclaimer. Yes, there are a lot of problems with using session in your ASP.NET applications. Moreover, by de
原创 解決window.navigator.geolocation.getCurrentPosition在IOS10系統中無法進行地理定位問題
https://developer.mozilla.org/zh-CN/docs/Web/API/Geolocation/getCurrentPosition https://developers.google.com/web/updat
原创 ASP.NET Core /User Secrets 在開發環境保存機密
前言 在應用程序開發的過程中,有的時候需要在代碼中保存一些機密的信息,比如加密密鑰,字符串,或者是用戶名密碼等。通常的做法是保存到一個配置文件中,在以前我們會把他保存到web.config中,但是在ASP.NET Core中,這一方式或許
原创 Orleans 2.0 sample[1]
refs: 1) http://dotnet.github.io/orleans/Documentation/resources/Migration/Codegen.html issues: 1)所有包含Grains, Grain i
原创 entityframework 和 postgreslq
Refs: https://www.cnblogs.com/fonour/p/5886292.html https://www.cnblogs.com/joeymary/p/9032825.html Package 序號 Pa
原创 postwoman代替postman
# 使用步驟 git clone https://github.com/liyasthomas/postwoman.git npm install npm run dev 1)需要先添加python路徑: 此處添加vs集成的py
原创 restful client
android/java 版 restful client, Retrofit c#,dotnet 版 reactiveui/refit: The automatic type-safe REST library for .NET
原创 gps 座標距離計算
1)如果是js狀態可以利用地圖供應商比如高德,百度的sdk庫來計算,需要註冊開發者賬號,也可以在其他方式下驗證。 (https://lbs.amap.com/api/javascript-api/example/calcutation
原创 轉:SQL SERVER佔用CPU過高排查和優化
操作系統是Windows2008R2 ,數據庫是SQL2014 64位。 近階段服務器出現過幾次死機,管理員反饋機器內存使用率100%導致機器卡死。 SQL優化方法: 1、查看連接對象 1 USE master 2 GO
原创 Code-First Database Design with Entity Framework and PostgreSQL
Entity Framework is an Object-Relational Mapper for .NET applications, and the code-first approach using Entity Framewo
原创 MS-DOS and Windows command line bcdedit command
The bcdedit command line tool modifies the boot configuration data store, contains configuration parameters and control