现在位置: 首页 > damnation发表的所有文章
  • 11月
  • 18日
综合 ⁄ 共 4615字 评论关闭
原:http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html 今天中午,我突然想搞清楚Unicode和UTF-8之间的关系,于是就开始在网上查资料。 结果,这个问题比我想象的复杂,从午饭后一直看到晚上9点,才算初步搞清楚。 下面就是我的笔记,主要用来整理自己的思路。但是,我尽量试图写得通俗易懂,希望能对其他朋友有用。毕竟,字符编码是计算机技术的基石,想要熟练使用计算机,就必须懂得一点字符编码的知识。 1. ASCII码 我们知道,在计算机内部,所有的信息最终都表示为一个二进制的字符串。每一个二进制位(b......
阅读全文
  • 08月
  • 03日
综合 ⁄ 共 91字 评论关闭
http://www.oss4aix.org/download/latest/aix61/   http://www.oss4aix.org/download/latest/aix61/
阅读全文
  • 06月
  • 21日
综合 ⁄ 共 14688字 评论关闭
           我这种刚开始学习DWR的人来说要看懂真的蛮难。不过即便如此,http://www.blogjava.net/stevenjohn/archive/2012/07/07/382447.html这片文章还是给了我很大帮助,再次表示感谢,下面我将这两天的研究详细记录下来备忘,也希望能帮助到像我一样的人。只写过程,不写原理(不是不写,而是有些地方我也不太懂),下面开始:          第一、在项目中引入dwr.jar,然后在web.xml中进行配置,配置如下:     Java代码   <servlet>              <servlet-name>dwr-invoker</servlet-name>         ......
阅读全文
  • 02月
  • 21日
综合 ⁄ 共 1908字 评论关闭
Problem Description The Really Neato Calculator Company, Inc. has recently hired your team to help design their Super Neato Model I calculator. As a computer scientist you suggested to the company that it would be neato if this new calculator could convert among number bases. The company thought this was a stupendous idea and has asked your team to come up with the prototype program for doing base conversion. The project manager of the Super Neato Model I calculator has informed you that......
阅读全文
  • 01月
  • 07日
综合 ⁄ 共 3152字 评论关闭
Flash Mob Jumping Jack is in charge of organizing a flash mob. Themembers of the flash mob move around town all day and part of the appeal of thisgroup is they come together to do their thing whenever the mood strikes Jack.When the mood does strike, Jack sends a text message to the members to meet ata particular intersection in town in exactly one hour. The streets of the townrun only north-south or eastwest and are evenly spaced, forming a perfect gridlike a sheet of graph paper. Due to ......
阅读全文
  • 10月
  • 04日
综合 ⁄ 共 98字 评论关闭
lrzsz在linux里可代替ftp上传和下载。 安装lrzsz: yum install lrzsz  下载文件: sz zlib-1.2.8.tar.gz   上传文件: rz 这个命令无法在putty界面使用。
阅读全文
  • 06月
  • 09日
综合 ⁄ 共 1090字 评论关闭
动态调用Action中的方法 如果Action中存在多个方法时,可以使用!+方法名调用指定方法。如下: package zjh.struts2.lx; import com.opensymphony.xwork2.ActionSupport; public class HelloWorld extends ActionSupport { private String message; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String execute() { message = "这是第一个方法"; return SUCCESS; } public String other_method(){ message = "这是第二个方法"; return SUCCESS......
阅读全文
原文:SpringMvc+Mybatis(maven工程)整理出来了,纯自己手工整理!!!!!!!!!!!!有图有真相!!!!!!!!!!!!!!!!求高分!!!! 源代码下载地址:http://www.zuidaima.com/share/1550463690738688.htm 部署直接可用. 开发工具:Eclipse jdk:1.6 部署工具:tomcat7 db driver:mysql,其中可以自己随意改了,这里不多说了.... 数据库就不给了,没什么用处,主要分享框架.  
阅读全文
  • 05月
  • 18日
综合 ⁄ 共 772字 评论关闭
转载自:http://stackoverflow.com/questions/8377970/xcode-ios-project-only-shows-my-mac-64-bit-but-not-simulator-or-device 问: 2down votefavorite 1 share [fb]share [tw] This just started happening that my iOS project is only showing "My Mac 64-bit" rather than the Simulator or my iPhone to build to. I have no idea why this is happening. I do not think that I have changed anything. I have my project set to iOS 5 as the base SDK, but no matter what I do it seems to never ......
阅读全文
  • 05月
  • 04日
综合 ⁄ 共 17631字 评论关闭
/************************ PageByTopMax************************/   IF   EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID ( N'[dbo].[PageByTopMax]' ) AND type in ( N'P' , N'PC' )) DROP PROCEDURE [dbo]. [PageByTopMax] go CREATE PROCEDURE [dbo]. [PageByTopMax]   @tableName varchar ( 255),   @fieldName varchar ( 1000) = '*' ,   @PageSize int = 10, -- 页尺寸 ( 每页记录数 )   @page int = 1, -- 页码   @fieldSort varchar ( 255)= '' , -- 排序的字段名   @sort bit = 0, -- 配......
阅读全文
  • 04月
  • 22日
综合 ⁄ 共 1897字 评论关闭
上一篇文章介绍了函数的默认参数和输入输出函数,今儿来了解点别的。 1、多返回值函数: 不知道大家还记得元祖的概念不,一个返回值的函数返回值类型就是某个特定的类型,而多个返回值的函数返回值类型是一个元祖类型。 看下面的代码: <pre name="code" class="objc">func multiReturnFunc (s1 : String , name s2 : String ) -> (newString : String , count : Int){ var str = s1 + s2 return (str , countElements(str)) } println(multiReturnFunc("Hello", name: "Weasley")) 输出: (HelloWeasley, 1......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 1446字 评论关闭
在Smith和他的继承人的帮助下,重商主义慢慢的去掉了,经济广泛自由的扩散在英国,这种情形一直在1846年谷物法废除而终止,它是一系列实行很多年的关税,关税阻碍了谷物的出口,保持了谷物的价格导致了土地租金很贵--当然,提升了工人们买一个面包的价格。Smith的经济学理论就是提供人民对文明国度的商业生活的重新认识。 然而在Smith的声望和影响力随着工业化的扩展而提升。他对于那些在19和20世纪抵抗野蛮和不公平的放任市场经济的人们来说不是英雄。Rebert Owen一个成功的英国工厂主,认为放任的资本主义只会导致贫穷和疾病。他......
阅读全文