摘要: 1.点击控制面板-区域和语言-管理,确认您的界面语言和非Unicode程序语言保持一致。2.请使用系统检测工具进行完整性检测打开提升的命令提示符。若要执行此操作,单击开始、所有程序、附件,用鼠标右键单击命令提示符,然后单击以管理员身份运行。如果提示您输入管理员密码或进行确认时,键入密码,或单击允许.在命令提示符处,键入下面的命令,然后按 enter 键:sfc /scannow"Sfc /scannow命令将扫描所有受保护的系统文件,不正确的版本替换为正确的 Microsoft 版本。3.可以运行services.msc进入服务管理页面,将Windows Installer服务设置为 阅读全文
posted @ 2013-08-14 10:20 CY. 阅读(406) 评论(0) 推荐(0) 编辑
摘要: ByAlexis SeigneurinonSeptember 17, 2009 9:40 AM|No CommentsYesterday, I came accross a weird error when working with a Spring-enabled application. It was working fine within Eclipe but wouldn't run on the command line:Exception in thread "main" org.springframework.beans.factory.parsing 阅读全文
posted @ 2013-08-12 19:16 CY. 阅读(796) 评论(0) 推荐(0) 编辑
摘要: Do in eclipse:window->show view->other->maven->maven repositories.One of the indexes is:http://repo1.maven.org/maven2.right-click on this one, and try rebuild index.If that does not work, create a new index with the same address, and do a rebuild of that. With me that worked, and I could 阅读全文
posted @ 2013-08-09 18:00 CY. 阅读(185) 评论(0) 推荐(0) 编辑
摘要: I had the following problem. When I would open Outlook 2010 from the Start menu, the icon would appear in the Taskbar, but the Main Window would never open. Running in Safe mode would work, with the obvious limitations and annoyances. I wanted my "normal" Outlook back.I do not claim to be 阅读全文
posted @ 2013-08-06 11:32 CY. 阅读(238) 评论(0) 推荐(0) 编辑
摘要: By default, gvim on my Windows machines just displays question marks, boxes, or garbled characters when I try to open files with Chinese text. The fix was rather simple:From thegettextproject on SourceForge, getlibiconv-1.9.1.bin.woe32.zip, which containsbin/iconv.dll. Put that file into gvim's 阅读全文
posted @ 2013-08-01 16:05 CY. 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Paging is the term to describe getting a sub selection of data from a record set. Imagine you have a list of 1000 records but you don’t want your user to have to deal with 1000 all at the same time so you break it up into pages. You set a system limit and say they can only have 50 or 100 at a time a 阅读全文
posted @ 2013-07-19 09:50 CY. 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Configure FiddlerClick Tools > Fiddler Options > Connections.Ensure that the checkbox by Allow remote computers to connect is checked.If you check the box, restart Fiddler.Hover over the Online indicator at the far right of the Fiddler toolbar to display the IP address of the Fiddler server.Co 阅读全文
posted @ 2013-07-17 18:07 CY. 阅读(547) 评论(0) 推荐(0) 编辑
摘要: Spring不但支持自己定义的@Autowired注解,还支持几个由JSR-250规范定义的注解,它们分别是@Resource、@PostConstruct以及@PreDestroy。 @Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Resource默认按 byName自动注入罢了。@Resource有两个属性是比较重要的,分是name和type,Spring将@Resource注解的name属性解析为bean的名字,而type属性则解析为bean的类型。所以如果使用name属性,则使用byName的自动注入策略,而使用type属性时. 阅读全文
posted @ 2013-07-16 16:58 CY. 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一. 引子在git操作中,我们可以使用checkout命令检出某个状态下文件,也可以使用reset命令重置到某个状态,这里所说的“某个状态”其实对应的就是一个提交(commit).我们可以把一个git仓库想象成一棵树,每个commit就是树上的一个节点。家家都有一本自己的祖谱。祖谱记录了一个家族的生命史,它不仅记录着该家族的来源、迁徙的轨迹,还包罗了该家族生息、繁衍、婚姻、文化、族规、家约等历史文化的全过程。类似的,每个git仓库都有一本自己的祖谱,仓库中commit ID的繁衍,HEAD指针的迁徙,分支的增加、更新,同样的记录着一个仓库从无到有的点点滴滴。在git中,我们其实可以通过^和~来 阅读全文
posted @ 2013-06-27 17:56 CY. 阅读(450) 评论(0) 推荐(0) 编辑
摘要: public int getStatusBarHeight() { int result = 0; int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android"); if (resourceId > 0) { result = getResources().getDimensionPixelSize(resourceId); } return result}this method worked fine for me.. 阅读全文
posted @ 2013-06-21 00:20 CY. 阅读(286) 评论(0) 推荐(0) 编辑