摘要: 总结了一下JAVA里的基本数据类型,一共八种如下,总结自Oracale官方文档。http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.htmlPrimitive Data Typesbitminmaxbyte8-2^... 阅读全文
posted @ 2014-11-05 11:33 buptzjf 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 在V2EX、byr等站闲逛时总会遇上一些比较高大上的网站让人眼前一亮,就在这个地方记录一下,遇到新的就更新~ 1.http://www.mmtrix.com/ 测量网站性能,无论界面和测量数据都很高大上,很详细很全面,IDC、CDN分布、各种终端响应速度等等。。。 2.http://ww... 阅读全文
posted @ 2014-11-04 16:13 buptzjf 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 想在Nginx上开发具有这样功能的一个转发模块,外部转发策略控制服务器将一些指定的URL发送给数据库,Nginx读取数据库中的URL列表,将列表指定的这些URL转发到特定的缓存代理服务器上,其他非数据库URL列表中的URL请求直接通过Nginx转发到出口网关上。实际上以上的功能就是很多网站利用N... 阅读全文
posted @ 2014-10-31 17:36 buptzjf 阅读(3730) 评论(0) 推荐(0) 编辑
摘要: 最近在实验室研究CDN和缓存的一些内容,看了很多Squid缓存服务器的资料,于是想在自己电脑上搭建和配置一个Squid缓存代理,看看它的工作流程,下面是自己做的一些步骤。 实验环境: 环境很简单,都是在自己的电脑上跑的,客户机win7系统,缓存代理为win7内的ubuntu 12... 阅读全文
posted @ 2014-10-28 16:06 buptzjf 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: 这两天练手JAVA WEB想做一个网页版的实验室通讯录,结果导入CSV文件时候出现了问题,原来Windows下导入要注意分隔符和Linux不同,另外编码格式一定要指定好。 CSV文件的格式是: 张三,13241116765,123@mail.bupt.edu.cn 李四,12323423... 阅读全文
posted @ 2014-10-27 14:23 buptzjf 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a... 阅读全文
posted @ 2014-10-26 11:00 buptzjf 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at... 阅读全文
posted @ 2014-10-26 10:32 buptzjf 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an... 阅读全文
posted @ 2014-10-23 10:32 buptzjf 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thepreordertraversal of its nodes' values.问题: 前序遍历二叉树。分析: 前序遍历:若二叉树为空则结束返回,否则: (1)访问根结点。 (... 阅读全文
posted @ 2014-10-23 09:55 buptzjf 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le... 阅读全文
posted @ 2014-10-23 09:44 buptzjf 阅读(114) 评论(0) 推荐(0) 编辑