- 博客(1)
- 资源 (7)
- 收藏
- 关注
原创 CMD命令行接收输入
因为我想连接宽带用脚本实现,不用去点那个宽带连接快捷方式,另外想在连接的时候根据我输入的Yes or No来选择连上internet后是否连上VPN到公司内网,所以就有了这段脚本。网上很多人说要用Choice之类的实现命令行参数交互录入,而XP/2K又没有支持这个命令,后来又找到一个 set /p var=description这样一个实现方案,就是这样简单,分享之. echo off
2009-02-01 14:10:00 940
利用R.Net進行數據統計分析
Using R in C#.net;
R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS.
1.install R of windows platform(32bit or 64bit)
2.create a console demo program, and install package R.NET.Community via nuget
3.be careful of your console program build target platform should be the same with R (32bit or 64bit)
4.if you don't register the R tool's env variable, you should config in your initial code
REngine.SetEnvironmentVariables(@"C:\Program Files\R\R-3.4.2\bin\x64", @"C:\Program Files\R\R-3.4.2");
fitting-three-parameter-log-normal-distribution-in-R
LL3 <- function(X, m, s, t)(1/((X-t)*s*(2*pi)^0.5))*exp(((-(log(X-t)-m)^2)/(2*s^2)))
https://stackoverflow.com/questions/23631746/fitting-three-parameter-log-normal-distribution-in-r
https://link.springer.com/chapter/10.1007/978-94-017-1431-0_7?no-access=true
2018-03-15
OpenCV 人脸识别 Demo
1. download Emgu installation package, install(extract)
2. new winform application, add reference
D:\Emgu\emgucv3.2.0.2682\bin\Emgu.CV.World.dll
D:\Emgu\emgucv3.2.0.2682\bin\Emgu.CV.UI.dll
3.add components to visual studio toolbox:
load Emgu.cv.ui.dll
toolbox-->chooseitems->browse to the dll, and load it
4.copy the required dll to your executable directories, or add those libraries to path.
add to %path%
D:\Emgu\emgucv3.2.0.2682\bin\x64
or copy those dlls to
D:\VS2005-Home\OpenCVTest\OpenCVTest\bin\Debug
5.you can start demo now.
放点干货分享,很简单,希望能帮到一些人, 顺便赚点分数可以下载其他资源
2018-02-08
NHibernate Demo
NHibernate 演示,Visual Studio2008, asp.net
基于Oracle自带范例HR数据库做一个一个简单的演示,实现数据库的增加,删除,修改,查询,我用的是Oracle9208,代码简单,就算不能运行,也可以参考,简单改一下可以连接你自己的数据库Table演示, 演示特性如下:
1.增加连接多DB功能,强化Session管理功能
2.增加httpmodule自动关闭功能, Application_EndRequest 处理过程中关闭所有打开连接
3.程式中使用只需要打开连接,不需要关闭
4.ISession session = NHibernateHelper.GetSession("HR"); 带参数的需要在Config中增加NHConfigSettings节,格式同AppSettings
.GetCurrentSession();不带参数的情况下Web.config中一定要有hibernate-configuration节
5.连接是单线程的,在整个httpRequest处理过程中是公用的,缓存在HttpContext context中 see ref NHibernateHelper.getSession...
6.增加log4net演示,这是一个强大的log记录组件.
這個免費OR Mapping的工具很強大, 好用.
2011-02-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人