-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d4361d
commit 44fb6c1
Showing
65 changed files
with
2,154 additions
and
25 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
Build Tool/Windows installer/Advanced Installer/Advanced Installer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Advanced Installer | ||
|
||
- [Free Windows Installer - MSI Installer Tool](https://www.advancedinstaller.com/) | ||
- [安装包制作工具 Advanced Installer v16.1 + v16.0 付费汉化版!心海首发!-心海e站](https://hrtsea.com/27808.html) |
5 changes: 5 additions & 0 deletions
5
Cloud/google/GoogleTranslateFreeApi/GoogleTranslateFreeApi.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# GoogleTranslateFreeApi | ||
|
||
## Github | ||
|
||
- [Grizley56/GoogleTranslateFreeApi](https://github.com/Grizley56/GoogleTranslateFreeApi) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Translate | ||
|
||
- [使用 google 语言 api 来实现整个网站的翻译 - 曾经沧海 云淡风轻 - 博客园](https://www.cnblogs.com/yifenghong/p/4522949.html) | ||
- [谷歌大神 Jeff Dean:谷歌翻译 API 付费服务已获利 - 人工智能 - 电子发烧友网](http://www.elecfans.com/rengongzhineng/636406.html) | ||
- [这是真的,Google 翻译的 API 真的关闭了-腾讯云资讯](https://cloud.tencent.com/info/aa73e69f1b1f8f14ccdd15f0e8666ef2.html) | ||
- [快速入门:使用客户端库](https://cloud.google.com/translate/docs/quickstart-client-libraries) | ||
- [GoogleCloudPlatform/dotnet-docs-samples](https://github.com/GoogleCloudPlatform/dotnet-docs-samples/blob/2ec373efac86f3e589ff98ac8abf5d28b29b1578/translate/api/QuickStart/Program.cs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# console.developers.google.com/apis | ||
|
||
- [Getting Title at 53:25](https://console.developers.google.com/apis/dashboard?project=fluid-mote-240115&pli=1) | ||
|
||
## GCP [Google Cloud Platform] | ||
|
||
- [Google Cloud Platform Documentation Google Cloud](https://cloud.google.com/docs/) | ||
- [Google Cloud Platform Billing Support - Google Cloud Platform Console Help](https://support.google.com/cloud/contact/cloud_platform_billing) | ||
|
||
## Cloud Translation API | ||
|
||
- [Google 中国开发者 | Google Developers](https://developers.google.cn/china/) | ||
- [技术资源汇总](https://chinagdg.org/resource-list/) | ||
|
||
### Google.Cloud.Translation.V2 | ||
|
||
- [Cloud Translation API](https://console.developers.google.com/apis/library/translate.googleapis.com?filter=category:machine-learning&project=fluid-mote-240115&folder&organizationId) | ||
- [Google.Cloud.Translation.V2 | Google.Cloud.Translation.V2](https://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Translation.V2/) | ||
- [Google Cloud Client Libraries for .NET | Google Cloud APIs](https://googleapis.github.io/google-cloud-dotnet/docs/index.html) | ||
|
||
## APIS | ||
|
||
### Google APIs Explorer | ||
|
||
- [Google APIs Explorer](https://developers.google.com/apis-explorer/#p/) | ||
- [API Library](https://console.developers.google.com/apis/library?project=fluid-mote-240115&folder&organizationId) | ||
- [Machine learning](https://console.developers.google.com/apis/library?filter=category:machine-learning&project=fluid-mote-240115&folder&organizationId) | ||
|
||
### Pricing | ||
|
||
- [Pricing Google Cloud](https://cloud.google.com/translate/pricing) | ||
|
||
### Google Cloud Platform | ||
|
||
- [GCP Support Services Support Google Cloud](https://cloud.google.com/support/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# developers | ||
|
||
- [Google Developers](https://developers.google.com/) | ||
- [GCP(Google Cloud Platform)入门 - 六合小杆子 - 博客园](https://www.cnblogs.com/shengwang/p/10567446.html) | ||
- [Gpay](https://pay.google.com/payments/home) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# google-translate-api | ||
|
||
## GitHub | ||
|
||
- [matheuss/google-translate-api](https://github.com/matheuss/google-translate-api) |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
DB/Microsoft SQL Server 2012 Express/Microsoft SQL Server 2012 Express.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Microsoft SQL Server 2012 Express | ||
|
||
- [Download Microsoft® SQL Server® 2012 Express from Official Microsoft Download Center](https://www.microsoft.com/en-us/download/details.aspx?id=29062) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# PostgreSQL | ||
|
||
- [问题来了,PostgreSQL 的好处都有啥?](https://www.sohu.com/a/237111633_671058) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 写入 | ||
|
||
- [使用事务操作 SQLite 数据批量插入,提高数据批量写入速度,源码讲解 - 伍华聪 - 博客园](https://www.cnblogs.com/wuhuacong/p/3310008.html) | ||
- [提升 SQLite 数据插入效率低、速度慢的方法 - fugaoting 的博客 - CSDN 博客](https://blog.csdn.net/fugaoting/article/details/88732027) | ||
- [提升 SQLite 数据插入效率低、速度慢的方法 - majiakun1 的专栏 - CSDN 博客](https://blog.csdn.net/majiakun1/article/details/46607163) | ||
- [c# 对sqlite基本操作,带批量插入(百万级秒插)-CSDN下载](https://download.csdn.net/download/mic_gary/10154869) | ||
|
||
## 常遇到问题 | ||
|
||
### string or blob too big | ||
|
||
- System.Data.SQLite.SQLiteException:“string or blob too big | ||
- statement too long” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Repair | ||
|
||
- SQLite 有一个很严重的缺点就是不提供 Repair 命令. | ||
- 导致死亡提示 database disk image is malformed 它的产生有很多种可能, | ||
- 比如,磁盘空间不足,还有就是写入数据过程中突然掉电等.官 | ||
|
||
- [SQLite 数据库错误:The database disk image is malformed 解决(修复)方法 - 林鹤霄 - ITeye 博客](https://linhexiao.iteye.com/blog/2342808) | ||
- [使用 SQLite 的感想 - 猴健居士 - 博客园](https://www.cnblogs.com/HopeGi/archive/2013/05/28/3102922.html) | ||
- [sqlite 错误 database disk image is malformed 可解决 - wolfking0608 的博客 - CSDN 博客](https://blog.csdn.net/wolfking0608/article/details/71076588) | ||
- [讨论 SQLite 数据库损坏与修复 - 飞龙在天 - CSDN 博客](https://blog.csdn.net/dragonpeng2008/article/details/52094269) | ||
|
||
## 大型文件修复 | ||
|
||
```txt | ||
最后这个问题还是解决了,我的解决方法是: | ||
下载SQLite Expert Professional,一定要Professional版(收费)的,Personal版(免费)的没有修复功能。 | ||
``` | ||
|
||
### sqlite3 下载 | ||
|
||
```txt | ||
sqlite-tools-win32-x86-3280000.zip | ||
(1.70 MiB) A bundle of command-line tools for managing SQLite database files, including the command-line shell program, the sqldiff.exe program, and the sqlite3_analyzer.exe program. | ||
(sha1: 4063fe326243ab775a86c104fa77ac178f03976b) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# SQL | ||
|
||
## SQL 语句 | ||
|
||
### 清理空闲页 | ||
|
||
```C# | ||
VACUUM | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
# 线程读写 | ||
|
||
- [Sqlite3 多线程读写解决方案 - tajon1226 的专栏 - CSDN 博客](https://blog.csdn.net/tajon1226/article/details/54864322) | ||
- [sqlite3 多线程和锁 ,优化插入速度及性能优化 - 熠熠闪光 - 博客园](https://www.cnblogs.com/huozhong/p/5973938.html) | ||
|
||
## Sqlite3 多线程读写解决方案 | ||
|
||
```text | ||
重要的事情说三遍!!! | ||
如果你想在多线程环境下使用数据库, | ||
那么你得确保所有的线程使用的都是同一个数据库连接。 | ||
如果你想在多线程环境下使用数据库, | ||
那么你得确保所有的线程使用的都是同一个数据库连接。 | ||
如果你想在多线程环境下使用数据库, | ||
那么你得确保所有的线程使用的都是同一个数据库连接。 | ||
``` | ||
|
||
## 多线程读写操作 | ||
|
||
```c# | ||
//多线程写 一定要加锁 | ||
Thread Th3 = new Thread(delegate () | ||
{ | ||
Parallel.For(0, 1, new ParallelOptions() { MaxDegreeOfParallelism = 300 }, (i, loopState) => | ||
{ | ||
try | ||
{ | ||
lock (lockObj) | ||
{ | ||
using (var db = Aleseocore.Module.Aleseo.Database.Main.Base.GetInstance_demo_guid()) | ||
{ | ||
var demo_guiditem = new Aleseo.Database.Main.Entity.Models.demo_guiditem(); | ||
demo_guiditem.guid = i.ToString(); | ||
demo_guiditem.body = System.Guid.NewGuid().ToString("N"); | ||
var t2 = db.Insertable(demo_guiditem).ExecuteCommand(); | ||
} | ||
} | ||
} | ||
catch (Exception) | ||
{ | ||
Console.WriteLine("写入异常"); | ||
} | ||
|
||
}); | ||
|
||
}); | ||
Th3.IsBackground = true; | ||
Th3.Start(); | ||
|
||
//多线程读 无须加锁 | ||
Thread Th4 = new Thread(delegate () | ||
{ | ||
Parallel.For(0, 999999999, new ParallelOptions() { MaxDegreeOfParallelism = 300 }, (i, loopState) => | ||
{ | ||
try | ||
{ | ||
using (var db = Aleseocore.Module.Aleseo.Database.Main.Base.GetInstance_demo_guid()) | ||
{ | ||
var urlitems = db.Queryable<Aleseo.Database.Main.Entity.Models.demo_guiditem>().OrderBy(it => SqlSugar.SqlFunc.GetRandom()).Take(50).ToList(); | ||
} | ||
} | ||
catch (Exception) | ||
{ | ||
Console.WriteLine("读取异常"); | ||
} | ||
lock (lockObj) | ||
{ | ||
} | ||
}); | ||
|
||
}); | ||
Th4.IsBackground = true; | ||
Th4.Start(); | ||
|
||
``` | ||
|
||
## 批量写测试 | ||
|
||
```c# | ||
|
||
//多线程写 一定要加锁 | ||
Thread Th3 = new Thread(delegate () | ||
{ | ||
//批量写入测试 | ||
List<Aleseo.Database.Main.Entity.Models.demo_guiditem> demo_Guiditems = new List<Aleseo.Database.Main.Entity.Models.demo_guiditem>(); | ||
|
||
|
||
|
||
Parallel.For(0, 0, new ParallelOptions() { MaxDegreeOfParallelism = 5000 }, (i, loopState) => | ||
{ | ||
try | ||
{ | ||
lock (lockObj) | ||
{ | ||
demo_Guiditems.Add(new Aleseo.Database.Main.Entity.Models.demo_guiditem() { guid = i.ToString(), body = File.ReadAllText(@"D:\wwwrootRes\AleseoTemp\Articles\c4150a1b8b8005af3ad0127adb125fae.txt", Encoding.UTF8) }); | ||
} | ||
|
||
} | ||
catch (Exception ex) | ||
{ | ||
Console.WriteLine("写入异常," + ex.Message); | ||
} | ||
|
||
}); | ||
|
||
if (demo_Guiditems.Count==0) | ||
{ | ||
return; | ||
} | ||
|
||
System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch(); | ||
stopwatch.Reset(); | ||
stopwatch.Start(); | ||
|
||
using (var db = Aleseocore.Module.Aleseo.Database.Main.Base.GetInstance_demo_guid()) | ||
{ | ||
|
||
var t2 = db.Insertable(demo_Guiditems).ExecuteCommand(); | ||
} | ||
|
||
stopwatch.Stop(); | ||
Console.WriteLine("成功导入{0}条数据 ,用时{1}秒。", demo_Guiditems.Count, stopwatch.Elapsed.TotalSeconds); | ||
|
||
Console.WriteLine("执行完毕"); | ||
|
||
|
||
|
||
}); | ||
Th3.IsBackground = true; | ||
Th3.Start(); | ||
``` | ||
|
||
## 事务多线程下错误示例 | ||
|
||
```c# | ||
// 事务插入数据 | ||
if (demo_Guiditems.Count == 0) { return; } | ||
|
||
System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch(); | ||
stopwatch.Reset(); | ||
stopwatch.Start(); | ||
|
||
Thread Th_insert_1 = new Thread(delegate () | ||
{ | ||
using (var db = Aleseocore.Module.Aleseo.Database.Main.Base.GetInstance_demo_guid()) | ||
{ | ||
for (int i = 0; i < 2500; i++) | ||
{ | ||
var item = demo_Guiditems[i]; | ||
db.Insertable<Aleseo.Database.Main.Entity.Models.demo_guiditem>(item).AddQueue(); | ||
} | ||
var more = db.SaveQueuesAsync(); | ||
} | ||
|
||
}); | ||
Th_insert_1.IsBackground = true; | ||
Th_insert_1.Start(); | ||
|
||
Thread Th_insert_2 = new Thread(delegate () | ||
{ | ||
|
||
using (var db = Aleseocore.Module.Aleseo.Database.Main.Base.GetInstance_demo_guid()) | ||
{ | ||
for (int i = 2500 - 1; i < 5000; i++) | ||
{ | ||
var item = demo_Guiditems[i]; | ||
db.Insertable<Aleseo.Database.Main.Entity.Models.demo_guiditem>(item).AddQueue(); | ||
} | ||
var more = db.SaveQueuesAsync(); | ||
} | ||
|
||
}); | ||
Th_insert_2.IsBackground = true; | ||
Th_insert_2.Start(); | ||
|
||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Sql Server LocalDB | ||
|
||
## Wiki | ||
|
||
- [VS2015 自带的 LocalDB 数据库的用法 - Traveller_Lee - 博客园](https://www.cnblogs.com/Traveller-Lee/archive/2016/08/16/5776312.html) | ||
- [如何安装 SQL LocalDB 数据库安装图文教程](https://baijiahao.baidu.com/s?id=1590447297764877317&wfr=spider&for=pc) | ||
- [开发机用 LocalDB 代替 SQL Server-使用与连接字符串](http://www.cftea.com/m/c.asp?docID=7913) | ||
- [SqlLocalDB 实用工具](https://docs.microsoft.com/zh-cn/previous-versions/sql/sql-server-2012/hh212961%28v%3Dsql.110%29) | ||
- [使用 SqlLocalDB 命令行管理 LocalDB - 账号难注册 - 博客园](https://www.cnblogs.com/wallis0922/p/3702424.html) | ||
- [SQL Server LocalDB本地文件数据库操作实践 - 纸上得来终觉浅,绝知此事要躬行 - CSDN博客](https://blog.csdn.net/boonya/article/details/80743084) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SqlLocalDB | ||
|
||
## 操作命令 | ||
|
||
```C# | ||
// 启动、停止LocalDB实例 | ||
SqlLocalDB start "MyLocalDB" | ||
SqlLocalDB stop "MyLocalDB" | ||
``` | ||
|
||
### 路径 | ||
|
||
- SqlLocalDB.exe | ||
- %ProgramFiles%\Microsoft SQL Server\110\Tools\Binn | ||
|
||
### CMD 命令行中运行 SqlLocalDB.exe | ||
|
||
- Cd %ProgramFiles%\Microsoft SQL Server\110\Tools\Binn | ||
- SqlLocalDB.exe /? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SqlBulkCopy | ||
|
||
- [SqlBulkCopy 类](https://msdn.microsoft.com/zh-cn/library/ms294344) | ||
- [SqlBulkCopy 批量写入 25 万条数据只需 3s - 汉城节度使 - 博客园](https://www.cnblogs.com/tuqun/p/3637691.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 看云 kancloud | ||
|
||
- [看云 | 专注文档在线创作、阅读、分享和托管](https://www.kancloud.cn/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# style | ||
|
||
- [Better way to add a style attribute to Html using HtmlAgilityPack](https://html-agility-pack.net/knowledge-base/12062495/better-way-to-add-a-style-attribute-to-html-using-htmlagilitypack) |
Oops, something went wrong.