06 2012 档案
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Caching;using System.Text;namespace CNBlogs.Zzk.Domain.Entities{ public class DictionaryCacheManager<TK, TV> { private ObjectCache memoryCache; public DictionaryCacheManager():this(null){} ...
阅读全文
摘要:防止忘记的最好的方法就是记下来。这是一段最简单的搜索代码: public void Search() { var dir=FSDirectory.Open(new DirectoryInfo("xxx")); var searcher = new IndexSearcher(dir, true); var query = new TermQuery(new Term("Title", "jinzhao")); var tops=searcher.Search(query,100)...
阅读全文
摘要:一直用的4.5.1,众所周知的有个大Bug就是经常会显示有90%+的Native代码,那还分析个屁,这东西就废了。在网上苦苦找寻下终于找到了最新5.0版本的注册机,分享下。http://files.cnblogs.com/jinzhao/dottrace.part3.rarhttp://files.cnblogs.com/jinzhao/dottrace.part2.rarhttp://files.cnblogs.com/jinzhao/dottrace.part1.rar
阅读全文
摘要:刚一个朋友问跳跃怎么实现,其实对xna我也不了解,Zzk里搜索“XNA 跳跃”居然没有符合的记录,惊讶之余也有点冲动要不自己也搞一个?不过xna真的是不懂啊,找了两三个源码,笔者实在笨,没能理解它的算法实在见笑了。干脆自己动手从头实现一个,先从现实考虑起跳要考虑的因素是起跳速度(v1)体重(w)重力g然后根据物理xxx记不得了,咱不好高骛远了,simple is perfect 直接上代码:全局参数: private bool _isJumping; private bool _jumpKeyDown; private float _jumpHeigh...
阅读全文