关于windows xp sp2和windows 2003 sp1的最大连接数限制分析

Windows7 SP1导致含有ADO的程序运行失败问题 前天,更换了一台新电脑,配置还行,就兴冲冲的用上了32位的Windows7 SP1,确实比XP,2003好看,呵呵,其他还没更深的感触。当天晚上一个客户让修改一个程序功能,之前一直是在XP SP3(Windows2003 SP2)+VB6+SQL2000的环境下编译(确实有点古老了,习惯了),于是很兴奋的把源码拷到了新机器上,很简单的修改了一下便编译替换,然后悲剧来了,反映说“运行程序后直接弹出一 阅读详情

这个限制也是在tcpip.sys中限制的,

windows xp sp2的版本代码如下,留意红色的代码:

INIT:0005F660                         ; __stdcall InitTCPConn()
INIT:0005F660                         _InitTCPConn@0  proc near               ; CODE XREF: IPProcessConfiguration():loc_61DA9p
INIT:0005F660 6A 00                                   push    0               ; Depth
INIT:0005F662 68 54 43 50 43                          push    43504354h       ; Tag
INIT:0005F667 6A 44                                   push    44h             ; Size
INIT:0005F669 6A 00                                   push    0               ; Flags
INIT:0005F66B 68 A0 12 02 00                          push    offset _TcpConnFree@4 ; Free
INIT:0005F670 68 4A AE 01 00                          push    offset _TcpConnAllocate@12 ; Allocate
INIT:0005F675 E8 AC 85 FC FF                          call    _PplCreatePool@24 ; PplCreatePool(x,x,x,x,x,x)
INIT:0005F67A 85 C0                                   test    eax, eax
INIT:0005F67C A3 44 45 05 00                          mov     _TcpConnPool, eax
INIT:0005F681 0F 84 67 37 00 00                       jz      nullsub_1
INIT:0005F687 56                                      push    esi
INIT:0005F688 8B 35 B0 F2 04 00                       mov     esi, ds:__imp__KeInitializeSpinLock@4 ; KeInitializeSpinLock(x)
INIT:0005F68E 68 9C 3F 05 00                          push    offset _ConnTableLock ; SpinLock
INIT:0005F693 FF D6                                   call    esi ; KeInitializeSpinLock(x) ; KeInitializeSpinLock(x)
INIT:0005F695 68 20 44 05 00                          push    offset _ActiveOpenLock ; SpinLock
INIT:0005F69A FF D6                                   call    esi ; KeInitializeSpinLock(x) ; KeInitializeSpinLock(x)
INIT:0005F69C C7 05 1C 01 05 00 0A 00+                mov     _ActiveOpenProgressThreshold, 0Ah <-----就是这里呀.10连接限制
INIT:0005F6A6 B8 20 40 05 00                          mov     eax, offset _ActiveOpenTable
INIT:0005F6AB 5E                                      pop     esi
INIT:0005F6AC
INIT:0005F6AC                         loc_5F6AC:                              ; CODE XREF: InitTCPConn()+59j
INIT:0005F6AC 89 40 04                                mov     [eax+4], eax
INIT:0005F6AF 89 00                                   mov     [eax], eax
INIT:0005F6B1 83 C0 08                                add     eax, 8
INIT:0005F6B4 3D 20 44 05 00                          cmp     eax, offset _ActiveOpenLock
INIT:0005F6B9 7C F1                                   jl      short loc_5F6AC
INIT:0005F6BB 57                                      push    edi
INIT:0005F6BC 68 2D C4 04 00                          push    offset _ActiveOpenLimitLogCallback@8 ; ActiveOpenLimitLogCallback(x,x)
INIT:0005F6C1 68 00 40 05 00                          push    offset _ActiveOpenLimitLogEvent
INIT:0005F6C6 E8 61 B5 FB FF                          call    _CTEInitEvent@8 ; CTEInitEvent(x,x)
INIT:0005F6CB A1 80 97 05 00                          mov     eax, _TCPTime
INIT:0005F6D0 05 00 F0 FF FF                          add     eax, 0FFFFF000h
INIT:0005F6D5 6A 14                                   push    14h
INIT:0005F6D7 A3 24 01 05 00                          mov     _ActiveOpenLimitLogTick, eax
INIT:0005F6DC 59                                      pop     ecx
INIT:0005F6DD 33 C0                                   xor     eax, eax
INIT:0005F6DF BF A0 3F 05 00                          mov     edi, offset _ConnectCancelArray
INIT:0005F6E4 F3 AB                                   rep stosd
INIT:0005F6E6 40                                      inc     eax
INIT:0005F6E7 5F                                      pop     edi
INIT:0005F6E8 C3                                      retn
INIT:0005F6E8                         _InitTCPConn@0  endp ; sp = -8

win2003 sp1同样有这样的限制.

IT:00095361                               ; __stdcall InitTCPConn()
INIT:00095361                               _InitTCPConn@0  proc near               ; CODE XREF: InitAddr():loc_974D7p
INIT:00095361 6A 00                                         push    0               ; Depth
INIT:00095363 68 54 43 50 43                                push    43504354h       ; Tag
INIT:00095368 6A 48                                         push    48h             ; Size
INIT:0009536A 6A 00                                         push    0               ; Flags
INIT:0009536C 68 67 E3 02 00                                push    offset _TcpConnFree@4 ; Free
INIT:00095371 68 B5 01 02 00                                push    offset _TcpConnAllocate@12 ; Allocate
INIT:00095376 E8 6A F2 F7 FF                                call    _PplCreatePool@24 ; PplCreatePool(x,x,x,x,x,x)
INIT:0009537B 85 C0                                         test    eax, eax
INIT:0009537D A3 64 CC 08 00                                mov     _TcpConnPool, eax
INIT:00095382 0F 84 3D 2F 00 00                             jz      locret_982C5
INIT:00095388 56                                            push    esi
INIT:00095389 8B 35 40 E2 05 00                             mov     esi, ds:__imp__KeInitializeSpinLock@4 ; KeInitializeSpinLock(x)
INIT:0009538F 68 90 C6 08 00                                push    offset _ConnTableLock ; SpinLock
INIT:00095394 FF D6                                         call    esi ; KeInitializeSpinLock(x) ; KeInitializeSpinLock(x)
INIT:00095396 68 40 CB 08 00                                push    offset _ActiveOpenLock ; SpinLock
INIT:0009539B FF D6                                         call    esi ; KeInitializeSpinLock(x) ; KeInitializeSpinLock(x)
INIT:0009539D C7 05 98 10 06 00 0A 00 00 00                 mov     _ActiveOpenProgressThreshold, 0Ah
INIT:000953A7 B8 40 C7 08 00                                mov     eax, offset _ActiveOpenTable
INIT:000953AC 5E                                            pop     esi
INIT:000953AD
INIT:000953AD                               loc_953AD:                              ; CODE XREF: InitTCPConn()+59j
INIT:000953AD 89 40 04                                      mov     [eax+4], eax
INIT:000953B0 89 00                                         mov     [eax], eax
INIT:000953B2 83 C0 08                                      add     eax, 8
INIT:000953B5 3D 40 CB 08 00                                cmp     eax, offset _ActiveOpenLock
INIT:000953BA 7C F1                                         jl      short loc_953AD
INIT:000953BC 57                                            push    edi
INIT:000953BD 68 5E 55 05 00                                push    offset _ActiveOpenLimitLogCallback@8 ; ActiveOpenLimitLogCallback(x,x)
INIT:000953C2 68 20 C7 08 00                                push    offset _ActiveOpenLimitLogEvent
INIT:000953C7 FF 15 20 E3 05 00                             call    ds:__imp__CTEInitEvent@8 ; CTEInitEvent(x,x)
INIT:000953CD A1 E0 C5 08 00                                mov     eax, _TCPTime
INIT:000953D2 05 00 F0 FF FF                                add     eax, 0FFFFF000h
INIT:000953D7 6A 14                                         push    14h
INIT:000953D9 A3 A0 10 06 00                                mov     _ActiveOpenLimitLogTick, eax
INIT:000953DE 59                                            pop     ecx
INIT:000953DF 33 C0                                         xor     eax, eax
INIT:000953E1 BF C0 C6 08 00                                mov     edi, offset _ConnectCancelArray
INIT:000953E6 F3 AB                                         rep stosd
INIT:000953E8 40                                            inc     eax
INIT:000953E9 5F                                            pop     edi
INIT:000953EA C3                                            retn
INIT:000953EA                               _InitTCPConn@0  endp

 

要绕过这个限制很容易,改一下tcpip.sys就可以了,如

把:

  mov     _ActiveOpenProgressThreshold, 0Ah

改成:

mov     _ActiveOpenProgressThreshold, 0x7FFFFFFFh

就可以了。改了之后记得修正tcpip.sys的checksum

⭐️Windows XP 64位终极指南:从官方SP2镜像到中文语言包集成(系统架构解析 版本对比 安装部署 怀旧应用场景) 本文详细解析Windows XP 64位版的特殊技术背景与安装部署指南,包括官方SP2镜像获取验证、中文语言包集成方法,以及在现代硬件上的兼容性解决方案。特别针对怀旧应用场景和专业需求,提供工业控制软件、老游戏兼容等实用案例,帮助用户充分利用这一经典操作系统。 阅读详情

相关推荐

Windows XP SP3环境下安装Office 2003必备组件

SPTIP.dll是Office 2003中与扫描器界面支持相关的动态链接库文件。它为Office软件提供了与扫描仪设备交互的能力,使得用户可以通过扫描仪直接将文档扫描到Word、Excel等Office组件中。这个DLL文件由微软提供,并在安装Office 2003时一同安装到系统中。如果SPTIP.dll文件丢失或损坏,可能导致扫描功能失效。在企业环境中,如果出现SPTIP.dll相关的问题,应首先检查与扫描仪的兼容性,然后尝试重新安装Office 2003或只安装相关的工具包。

weixin_35757191的博客 1170

服务器最多支持几个远程用户,服务器最大连接数量又超了?win2003系统远程桌面多用户连接设置图文教程...

作为一个站长,登录服务器是家常便饭,是不是经常遇到过服务器超出最大连接的问题。在windows service 2003 操作系统中,windows组件“终端服务器”与“终端服务器授权”是用户允许多用户同时通过远程桌面连接访问服务器。下面,我们为大家详解win2003系统远程桌面多用户连接设置图文教程具体检查步骤如下:进入“开始”-“控制面板”-“添加或删除程序”如下图:点击“添加/删除windo...

weixin_39551103的博客 5230

解决Windows XP SP3多用户远程连接问题的termsrv工具

termsrv.exe是Windows操作系统中的一个组件,属于远程桌面服务的一部分。它原名Terminal Server,在早期版本的Windows NT中首次引入,用于处理远程桌面协议(RDP)客户端与服务器之间的通信。随着技术的发展,termsrv的角色逐渐演变为提供跨网络访问系统桌面环境的能力。最初的Terminal Server服务专为解决企业内部IT支持与管理而设计,而今已成为家庭用户、远程工作者和企业不可或缺的一部分。在IT行业,远程桌面连接工具是必不可少的。

weixin_42524864的博客 1080

修改 window2003 最大连接数

开始 - >运行 - >输入:gpedit.msc 命令后,将打开组策略管理器。   点击 管理模板 - >  Windows组件 -> 终端服务 - > 双击”限制连接数量“ 在设置选项卡中选择”已启用“,并在此修改“设置TS允许的最大连接数”。 具体设置说明如下: 指定终端服务是否限制同时与服务器相连的数量。 使用此设置可限制在

lisq037的专栏 1668

更改win 2003 server 最大连接数

增加连接数 运行:services.msc,启用license logging。 打开win2k3的控制面板中的"授权",点"添加许可",输入要改的连接数。 别忘了添加完毕后再关闭 License Logging。

CANopen PDO 配置實戰:3步完成0x1800-0x1A00物件字典映射與事件觸發

本文详细解析CANopen PDO配置实战,通过3个关键步骤完成0x1800-0x1A00对象字典映射与事件触发设置。重点介绍COB-ID位域解析、映射参数配置及事件触发优化,帮助工程师实现工业自动化设备间毫秒级实时数据交换,提升系统通信效率。

weixin_33709609的博客 379

windows2003终端服务器超出了最大允许连接数

windows2003默认允许同时连接数是2个,而且不能更改,在这个时候如果提示终端服务器超出了最大允许连接数并且连接不上时可以尝试以下方法。 方法一: 老的远程桌面使用mstsc /console /v:192.168.0.1 强行登陆 更新后的新版远程桌面使用mstsc /admin /v:192.168.0.1 强行登陆 方法二: mstsc连接不...

weixin_34015336的博客 334

避开ANSYS SOLID65钢筋模拟的坑:从材料TB到实常数R的完整配置清单

本文详细解析了ANSYS SOLID65单元在钢筋混凝土模拟中的关键配置与优化技巧,涵盖材料TB设置、实常数R配置及收敛性优化。特别针对钢筋建模的分布式钢筋模型进行深度解析,提供实战验证的参数设置手册,帮助工程师避免常见错误,提升模拟精度与效率。

weixin_30898555的博客 365

windows server 2003如何设置最大用户连接数

windows server 2003如何设置最大用户连接

ChiG分享生活,分享知识 7251

【飞控】MATLAB中UAV Toolbox Support Package for PX4 Autopilots和Pixhawk Pilot Support Package (PSP) 的关系?

区分UAV Toolbox Support Package for PX4 Autopilots和Pixhawk Pilot Support Package (PSP)

m0_58373406的博客 738

Windows下MMdetection3D保姆级安装指南(含CUDA和PyTorch版本避坑)

本文提供Windows平台下MMdetection3D的完整安装指南,重点解决CUDA与PyTorch版本匹配问题。从环境准备到关键组件安装,详细介绍了CUDA Toolkit选择策略、PyTorch精准安装步骤,以及MM系列组件的安装顺序和常见错误解决方案,帮助用户顺利完成3D目标检测环境的配置。

weixin_42628941的博客 490

彻底解决win2003远程超出最大连接数的方法

转自http://hi.baidu.com/handserver/blog/item/052d4f1c043bb18d86d6b65f.html修改组策略,彻底解决远程win2003超出最大连数的问题你一定遇到过,远程win2003超出最大连接数的问题,传统的方法就是重启服务器来注销用户,或在本地登录注销用户!但是这样处理非常不方便,而且重启服务器在某些时候还会给自己带来损失!这里我介绍下

afterain的专栏 1786

3步!Spring Boot+OCR引擎秒提身份证/营业执照?手把手教你从零实现!

OCR技术革新文档识别效率 本文演示了如何利用Spring Boot+Tesseract OCR+OpenCV构建自动化文档识别系统。相比传统人工录入,OCR技术可实现: 5秒极速提取身份证/营业执照关键信息 精准识别中文文本(准确率90%+) 正则过滤自动匹配结构化数据 技术要点: OpenCV图像预处理(灰度化+二值化) Tesseract多语言OCR识别 正则表达式精准提取证件号码 效率提升达100倍,错误率降低90%,适用于金融、政务等需要批量处理证件的场景。

java专栏 904

超出ipc连接数范围_超出最大连接数 - 卡饭网

远程桌面超出最大连接数如何解决远程桌面超出最大连接数如何解决 win2K/win2003终端服务器超出最大允许连接数的问题 一.用注销来退出远程桌面而不是直接关闭窗口 二.限制已断开链接的会话存在时间 1.从终端服务配置中修改 运行-Tscc.msc(终端服务配置)-连接-双击RDP-Tcp或右击-属性-会话-选中第一个的替代用户设置(O)-结束已断开的会话[将默认值"从不"改为一个适当的时间,比...

weixin_39778150的博客 775

手把手教你使用 YOLOv11/v8 算法 + PaddleOCR 算法完成车牌检测和车牌识别系统,AI智能体,毛玻璃系统,包括PaddlePaddle安装、数据集预处理、模型训练、AI大模型应用等

手把手教你使用 YOLOv11/v8算法 + PaddleOCR算法完成车牌检测和车牌识别系统,AI智能体,毛玻璃系统,包括PaddlePaddle安装、数据集预处理、模型训练、AI大模型应用等。车牌识别系统支持 蓝牌、绿牌、黄牌、双层车牌等车牌识别。

在职AI算法工程师,擅长计算机视觉,YOLO目标检测、分割等,擅长web、pyqt界面可视化,好内容持续更新中,来这里跟大家一起学习,共同进步 2782

针对小缺陷目标:在YOLOv11中引入小目标检测层

摘要: 针对YOLOv11在工业检测中漏检微小目标(如焊点气泡)的问题,研究发现深层特征下采样导致小目标信息丢失。通过在YOLOv11中增加P2检测层(4倍下采样)并融合浅层高分辨率特征,可显著提升小目标召回率。关键优化包括:调整模型结构、谨慎设计数据增强策略(减少MixUp、增加小目标粘贴)、重新分配损失权重(提升P2层权重)、优化推理速度(动态分辨率、通道裁剪)。同时强调数据质量的重要性,建议根据具体场景特性(目标尺寸、分布)定制方案,而非盲目调整模型。

as1225120794的博客 366

关于windows xp sp2/sp3 中tcpip.sys对于Raw socket的限制

WINDOWS XP SP2修改了TCPIP.SYS,增加了对于RAW SOCKET的发送和伪造源地的限制,详情如下 :1) 不能通过raw socket发送TCP报文。做此尝试时会得到10004号错误。2) 不能通过raw socket发送伪造源IP的UDP报文。3) 不能通过raw socket发送IP碎片。做此尝试时会得到10004号错误。不知微软在哪次对2000 SP4的修补中实现了类

aerror的专栏 5954

C/C++李峋同款跳动的爱心代码(完整代码)

C++语言实现出李峋同款跳动的爱心的完整代码。

AIGC 10万+

远程连接windows2003 server时提示超过最大连接数的解决方法

远程连接windows2003 server时提示超过最大连接数的解决方法 2010-08-20 09:24:58 标签:最大连接数 提示 server 解决 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://sucre.blog.51cto.com/1084905/380441 从昨天下午开始到今天早上,远程服务器一直提...

mobile payment development 261

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

解决windows2003 sp1“数据执行保护”惹的祸

 以前一直使用windows2003,没打sp1补丁。自从出了VS 2005,下载了一个打算安装,说windows2003需要更新到sp1,于是更新了sp1再装VS 2005。打了SP1后,发现金山词霸的“屏幕取词”不能用了,本来以为是sp1对某些hook或者是内存读写做了安全方面的限制,没怎么理会,不能用屏幕取词就算了。      最近有需要安装BCB6,装的是Update4大企业集成安装版(K

EndAll的专栏 3453

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

解决 Windows XP 下 IIS 最大连接数为 10 的问题

为了方便调试网站程序,就在 Windows XP 系统下安装了 IIS,但是出现了一个问题:“403.9 误-禁止访问:连接的用户过多”,会有这样的问题出现,一般有两种可能:一、IIS 本身的最大连接数限制;二、网站程序本身问题,比如存在死循环,如果是这样,那只能花时间去慢慢检查程序代码了。  现在,先来解决 IIS 最大连接数的问题,网络上讲的大部分都是使用微软出品的一款小软件:Metabase...

weixin_30692143的博客 228

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

去除XP SP2对raw socket的一些限制

 http://www.opencjk.org/~scz/windows/200701091750.txtA: scz@nsfocus.com 2007-01-09 17:50现在已经是众所周知,XP SP2对raw socket做了一些限制,最引人注目的有两条:1) 不能通过raw socket发送TCP报文。做此尝试时会得到10004号错误。2) 不能通过raw socket发送伪造源IP的U

1745

3t硬盘 xp_解决方案:如何在Windows XP SP3 32位系统下识别3T容​​量GPT格式的硬盘...

随着硬盘驱动器容量的增加,大于3TB的大型硬盘驱动器变得越来越普遍,但是XP仅支持2.0TB以内的硬盘驱动器,超过该容量则无法读取。在Windows操作系统环境中,如果要标识,访问和创建容量超过2.2TB的分区/硬盘驱动器,解决方案是将MBR放弃给GPT分区表。但麻烦的是,Windows7、Vista的特定版本仅支持GPT分区表,而Windows XP则不支持。操作系统版本和MBR分区表受到限制,...

weixin_35791324的博客 3342

如何解除Windows XP的IIS连接数限制

方法一: 开始 - 设置 - 控制面板 - 管理工具 - Internet 信息服务 - 默认网站 - 右键属性,把“网站”选项卡中“连接超时”下的复选框"保持HTTP连接"前的勾去掉。 参考:http://www.sun3.cn/344.htm 这个修改会导致VS使用IIS运行Web项目时提示“无法在web服务器上启动调试 与web服务器通信时出现身份验证错误”。 方法二...

MS_DOS_1991的博客 212
上一篇: 关于windows xp sp2/sp3 中tcpip.sys对于Raw socket的限制
下一篇: 基于C#的网络SNIFFER网络IP层监听程序
aerror
博客等级 码龄23年 392粉丝 193原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值