huotuotuofly on 六月 15th, 2011

huotuotuofly on 五月 21st, 2011

刚刚遇到sql存储过程的使用,老忘东西那就速度记下来。

Read the rest of this entry »

huotuotuofly on 五月 19th, 2011

写了一个很简单的jsp页面,从数据库中取出联系人的个人信息(编号、姓名、电话),完成显示修改删除等操作。逻辑很快就完成了,结果页面显示一直是乱码,并且过程中还出现了这样那样的问题。本文就此说说俺解决问题时学到的知识和获得的经验。

Read the rest of this entry »

Tags: , ,

huotuotuofly on 四月 10th, 2011

前面说的算法都是基于输入元素的比较,即所谓的比较排序。而任意一个比较排序算法在最坏情况下,都需要做Ω(nlgn) 次的比较。因此堆排序和合并排序都是渐进最优的比较排序算法。具体证明用到决策树模型。参见这里

本文讨论的则是三种以线性时间运行的非比较排序算法:计数排序、基数排序和桶排序。

Read the rest of this entry »

huotuotuofly on 四月 9th, 2011

堆排序和快速排序。

Read the rest of this entry »

huotuotuofly on 四月 8th, 2011

关于冒泡排序和选择排序

Read the rest of this entry »

huotuotuofly on 四月 8th, 2011

最近面试遇到好多关于排序算法的题目。算法没系统的学过,只在数据结构中有一点点涉及。就趁这机会复习下排序算法。

Read the rest of this entry »

huotuotuofly on 四月 2nd, 2011

原理:模拟telnet 80实现。原理详细见这里

执行 ./webserv 1234,然后在浏览器中输入: http://hostName:1234 /可查看结果。

终端可查看请求消息。不了解HTTP头消息的参见这里

Read the rest of this entry »

huotuotuofly on 三月 17th, 2011

介绍堆栈的不同之处,原文作者不详。

Read the rest of this entry »

huotuotuofly on 三月 12th, 2011

root@ubuntu:/home/huotuotuofly/cProgram# telnet www.thosedays.us 80

Trying 204.74.210.128…

Connected to www.thosedays.us.

Read the rest of this entry »

huotuotuofly on 三月 12th, 2011

Http(Hyper Text Transfer Protocal)是超文本传输协议,它用于网页间传送数据,http采用的是请求、响应模型,也就是说浏览器和Web服务器之间的交互(http事务)包括浏览器发起的一个请求和随后服务器返回的一个响应。请求和响应本质上是文本流,客户端和服务器端把它们解释为首部和紧随其后的主体部分。

Read the rest of this entry »

huotuotuofly on 二月 18th, 2011
JAVA的绘图功能非常丰富,绘图包括字体、颜色、图形,以下我们将分技术专题来讲。