摘要: This page is intended to help you understand how to access data on Microsoft FAT32 filesystems, commonly used on hard drives ranging in size from 500 megs to hundreds of gigabytes. FAT is a relatively simple and unsophisticated filesystem that is understood by nearly all operating systems, includin. 阅读全文
posted @ 2012-07-15 14:50 simplefrog 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 一个操作系统至少应该有自己的文件系统和进程机制,不过我们的最终目标应该是这个无论如何,看完本文,你应该可以手写一段通过U盘启动的在PC上运行的不需要其他软件来协助的自启动的代码,这无疑是一个完整的操作系统的基础。---------------------------------------------正文开始----------------------------------------导言我们的PC使用的x86体系,总是在计算机启动后从BIOS中开始执行指令,然后查找设备来启动。如果是我们平日里的那种正常从硬盘启动,BIOS会把硬盘的头512字节的数据复制到内存,检查这512字节是不是以1. 阅读全文
posted @ 2012-07-15 14:23 simplefrog 阅读(2782) 评论(3) 推荐(1) 编辑
摘要: 前提1.机器必须支持usb-hdd模式启动2.手边有大于275m 的U盘一个。(因为“U盘引导系统”安装需要275m的空间) 提示:如果想小于256m的U盘或存储卡,可以选择使用zip模式或hdd模式写入,如果U盘大于256m,必须选择hdd模式写入。3.UltraISOv9.3.0.26124.最好用的“U盘引导系统”,支持启动iso镜像哦(这个文件自己上网搜一下,有2百多M,这里不好上传)5.WINDOWS 98 启动盘(加强版)点击这里下载WINDOWS98加强版起动盘下面是制作步骤:第一步:安装UltraISO v9.3.0.2612 ,并插入U盘或存储卡第二步:然后用UltraISO 阅读全文
posted @ 2012-07-15 14:17 simplefrog 阅读(4665) 评论(0) 推荐(0) 编辑
摘要: 事实上这个概念谁都有只是三种声明方式非常相似很容易记混。 Bjarne在他的The C++ Programming Language里面给出过一个助记的方法: 把一个声明从右向左读。 char * const cp; ( * 读成 pointer to ) cp is a const pointer to char const char * p; p is a pointer to const char; char const * p; 因为C++里面没有const*的运算符,所以const只能属于char const * p这句代码中(const)前面的(char)类型。即char con. 阅读全文
posted @ 2012-07-15 14:04 simplefrog 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 问:const char const * const GetName() const { return m_name; }; So, what is the explanation for each of these consts?答:Take them from the right. The one before the ; tells the client this is a design level const i.e. it does not alter the state of the object. (Think of this as a read-only method.)Ok. 阅读全文
posted @ 2012-07-15 14:03 simplefrog 阅读(303) 评论(0) 推荐(0) 编辑
摘要: .NET Reflector 2011 2月已经结束提供免费版本,催生了另一个开源的项目ILSpy 大家都知道.net开发的软件,无论WebForm项目还是WinForm项目,发布的时候都是编译成dll或者exe文件。但是我们经常会无论是出于学习还是其他什么目的,想查看软件源代码和解除软件的某些限制。这时反编译技术就派上了用场。上面提到的reflector就是这样一个工具。 他可以把dll或者exe等目标文件反编译成源代码。如果目标文件没有经过混淆、加密等处理,往往反编译得到的源代码跟软件编译前的源代码几乎一模一样。这样就为程序的版权、安全等带来严重的隐患。 另外还有个工具ILDASM可以把目 阅读全文
posted @ 2012-07-15 13:48 simplefrog 阅读(8027) 评论(1) 推荐(1) 编辑
摘要: 一.什么是SQL注入式攻击? 所谓SQL注入式攻击,就是攻击者把SQL命令插入到Web表单的输入域或页面请求的查询字符串,欺骗服务器执行恶意的SQL命令。在某些表单中,用户输入的内容直接用来构造(或者影响)动态SQL命令,或作为存储过程的输入参数,这类表单特别容易受到SQL注入式攻击。常见的SQL注入式攻击过程类如: ⑴ 某个ASP.NET Web应用有一个登录页面,这个登录页面控制着用户是否有权访问应用,它要求用户输入一个名称和密码。 ⑵ 登录页面中输入的内容将直接用来构造动态的SQL命令,或者直接用作存储过程的参数。下面是ASP.NET应用构造查询的一个例子: System.T... 阅读全文
posted @ 2012-07-15 13:43 simplefrog 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 使用.NET Remoting 在不同应用程序域之间通信可以在同一个进程中、一个系统的进程之间或不同系统的进程之间进行NET Remoting is a technology for communication between different application domains.Using .NET Remoting for communication between application domains can happen inside the same process, between processes on a single system, or between proce 阅读全文
posted @ 2012-07-15 13:39 simplefrog 阅读(771) 评论(0) 推荐(1) 编辑
摘要: 1.Java虚拟机2.垃圾回收 阅读全文
posted @ 2012-07-15 13:30 simplefrog 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: 第一类:逻辑型boolean第二类:文本型char第三类:整数型(byte、short、int、long)char类型占2个字节short从-32768到32767int从-2147483648,到2147483647共10位long从-9223372036854775808到9223372036854775807共19位第四类:浮点型(float、double)在数学中0到1有无数个浮点数;而计算机是离散的,所以表示的时候有误差,计算机用精度(小数点后几位来表示正确),比较浮点数时a==0.1是不合适的,应该a-0.1==0;如果a是0.1,则即使有误差 a-0.1==0因为a和0.1都.. 阅读全文
posted @ 2012-07-15 03:05 simplefrog 阅读(185852) 评论(3) 推荐(16) 编辑
摘要: 阅读全文
posted @ 2012-07-15 03:02 simplefrog 阅读(1645) 评论(0) 推荐(1) 编辑
摘要: IntroductionThe Java super class java.lang.Object has two very important methods defined in it. They are - public boolean equals(Object obj) public int hashCode() These methods prove very important when user classes are confronted with other Java classes, when objects of such classes are added to .. 阅读全文
posted @ 2012-07-15 02:56 simplefrog 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 1.了解和下载Ubuntu目前Ubuntu的最新稳定版本是7.04,最新稳定的LTS版本(Ubuntu 的 “LTS” 版本拥有长期支持,桌面版本为3年,服务器版本为5年)是6.06,最新测试版本是7.10 Tribe 4,开发代号是Gutsy Gibbon,意思是“勇敢的长臂猿”,汗另外说一下有关Ubuntu各个版本的区别,帮助您确定您要下载哪一个——A、 按支持的时间划分普通版:提供18个月的在线更新支持;LTS版:上面说了,桌面版本提供3年,服务器版本提供5年的在线更新支持。B、 按应用划分桌面版:应用于台式机、笔记本等私人、家用、办公商务等用途;服务器版:用于服务器,据说没有图形界面。 阅读全文
posted @ 2012-07-14 23:06 simplefrog 阅读(11975) 评论(0) 推荐(0) 编辑
摘要: 网页上可拖动的透明窗体其实现参考了 阅读全文
posted @ 2012-07-14 22:26 simplefrog 阅读(167) 评论(0) 推荐(0) 编辑
摘要: ".*"="application/octet-stream"".001"="application/x-001"".301"="application/x-301"".323"="text/h323"".906"="application/x-906"".907"="drawing/907"".a11"="applicatio 阅读全文
posted @ 2012-07-14 22:15 simplefrog 阅读(660) 评论(0) 推荐(0) 编辑
摘要: In this month's column I will focus on some data management techniques commonly required in enterprise applications. These include saving parent-child data in a multitier application using ADO.NET, ADO.NET transactions, merge techniques, and a number of other ADO.NET features. I'll also disc 阅读全文
posted @ 2012-07-14 22:12 simplefrog 阅读(207) 评论(0) 推荐(0) 编辑
摘要: One of the key features of the ADO.NET DataSet is that it can be a self-contained and disconnected data store. It can contain the schema and data from several rowsets in DataTable objects as well as information about how to relate the DataTable objects—all in memory. The DataSet neither knows nor c. 阅读全文
posted @ 2012-07-14 22:08 simplefrog 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Hal Berenson, Phil Bernstein, Jim Gray, Jim Melton, Elizabeth O'Neil, and Patrick O'Neil June 1995ANSI SQL-92 [MS, ANSI] defines Isolation Levels in terms of phenomena: Dirty Reads, Non-Repeatable Reads, and Phantoms. This paper shows that these phenomena and the ANSI SQL definitions fail to 阅读全文
posted @ 2012-07-14 21:56 simplefrog 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 在开发智能监控系统时需要不同的监控器可播放不同的声音,如果多个监控器同时报警,声音需同时播放在解决该问题时,使用了NET框架提供的声音播放类,效果都不理想,当多个监控器同时报警时,声音会出现延迟或听起来很混乱最终找到了解决方法,直接调用操作系统的Win32 API,自己实现声音播放功能参考codeprojecthttp://www.codeproject.com/Articles/3352/A-low-level-audio-player-in-C 阅读全文
posted @ 2012-07-14 21:42 simplefrog 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 下图是智能监控系统自定义的WinForm窗体实现方法参见codeprojecthttp://www.codeproject.com/Articles/6048/Creating-Bitmap-Regions-for-Forms-and-Buttons 阅读全文
posted @ 2012-07-14 20:49 simplefrog 阅读(252) 评论(0) 推荐(0) 编辑