10 2012 档案

使用C# 4.5中提供的CallerInfo做log
摘要:Caller Details讲了怎么用,我也在github上放了个小例子。主要是用了[CallerMemberName],[CallerLineNumber],[CallerFilePathAttribute] 三个属性作为log函数的参数。 阅读全文

posted @ 2012-10-27 12:10 fresky 阅读(220) 评论(0) 推荐(0) 编辑

OSQA不能搜索question的解决办法。
摘要:昨天搭建好的OSQA,发现不能搜索question,只能搜索tag和user,搜索后发现在settings_local.py中的disabled modules里面加上 mysqlfulltext 就好了。但是这样就不能全文搜索了,只能支持问题的搜索。还得在研究研究。 阅读全文

posted @ 2012-10-26 15:23 fresky 阅读(151) 评论(0) 推荐(0) 编辑

用开源的OSQA在Windows上搭建Q&A网站
摘要:今天想在Windows上搭建一个Q&A网站,用的是开源的OSQA,通过Installing OSQA on Windows in production | Helicon Tech Blog安装在IIS上,非常简单。 阅读全文

posted @ 2012-10-25 17:16 fresky 阅读(769) 评论(0) 推荐(0) 编辑

C#的overload检查总是发生在编译时吗?
摘要:stackoverflow上有人问为什么下面的代码可以编译成功,但是运行时报错: public sealed class Example{ int count; public static void Foo( dynamic x ) { Bar(x); } void Bar( dynamic x ) { count++; ... 阅读全文

posted @ 2012-10-25 14:34 fresky 阅读(159) 评论(0) 推荐(0) 编辑

一个超cool的单反在线模拟网站
摘要:CameraSim simulates a digital SLR camera - SLR Photography Demystified 阅读全文

posted @ 2012-10-24 13:40 fresky 阅读(222) 评论(0) 推荐(0) 编辑

.NET反编译的可视化插件-Assembly Visualizer
摘要:Denis Markelov: Assembly Visualizer可以在Plugins · icsharpcode/ILSpy Wiki找到更多的ILSpy插件。 阅读全文

posted @ 2012-10-24 10:27 fresky 阅读(295) 评论(2) 推荐(0) 编辑

全球实时的IT 攻击地图,很cool
摘要:HoneyMap - Visualizing Worldwide Attacks in Real-Time HoneyMap 阅读全文

posted @ 2012-10-23 11:18 fresky 阅读(360) 评论(0) 推荐(0) 编辑

关于scrum的一些有趣的讨论
摘要:Moving Beyond Scrum 阅读全文

posted @ 2012-10-19 17:34 fresky 阅读(107) 评论(0) 推荐(0) 编辑

用Visual Studio做profiling
摘要:步骤可以参见:Beginners Guide to Performance Profiling刚才试了一下,挺好用的。而且能attach到process上去,很方便就能找到性能瓶颈,C#和C++都行。 阅读全文

posted @ 2012-10-19 13:34 fresky 阅读(225) 评论(0) 推荐(0) 编辑

看看stackoverflow上面这些欢乐的注释吧
摘要:polls - What is the best comment in source code you have ever encountered? - Stack Overflow 阅读全文

posted @ 2012-10-17 15:05 fresky 阅读(123) 评论(0) 推荐(0) 编辑

推荐一个firefox插件,可以在douban电影里显示imdb评分
摘要:推荐一个firefox插件,可以在douban电影里显示imdb评分。http://userscripts.org/scripts/show/103552也有chrom版本的,https://chrome.google.com/webstore/detail/doubanimdb/nfibbjnhkbjlgjaojglmmibdjicidini 阅读全文

posted @ 2012-10-17 13:51 fresky 阅读(364) 评论(0) 推荐(0) 编辑

不能catch Fatal的exception
摘要:Clemens Vasters - Are you catching falling knives?里给了一个判断C#的exception是不是fatal的代码,可以参考参考。 public static bool IsFatal(this Exception exception){ while (exception != null) { if (exceptio... 阅读全文

posted @ 2012-10-15 13:29 fresky 阅读(266) 评论(0) 推荐(0) 编辑

根据代码的现状调整估计
摘要:Grading Code这篇文章说在legacy code(遗留代码)中做开发时估计要根据现有代码的状况来做个调整了,给了如下11个评估标准:代码有单元测试,并且测试可以跑过。单元测试覆盖了主要的应用逻辑。业务逻辑和数据存储逻辑分开。业务逻辑和显示逻辑分开。大系统中代码被合适的分到了不同的项目中。代码编译没有warning和error。代码符合某种编码规范。没有长方法。(作者认为应该小于32行,如... 阅读全文

posted @ 2012-10-11 13:20 fresky 阅读(134) 评论(0) 推荐(0) 编辑

用windows7自带的Problem Steps Recorder制作错误报告
摘要:Help your users record and report bugs with the Problem Steps Recorder - Scott HanselmanWindows7和8自带的,开始,敲 PSR,就行了,然后开始录制,每次用户点击就做个抓屏,最后生成一个.mht文件,挺方便的。 阅读全文

posted @ 2012-10-10 13:45 fresky 阅读(179) 评论(0) 推荐(0) 编辑

软件开发10个致命错误(转自Construx)
摘要:(转自Construx,可以从http://info.construx.com/rs/construx/images/Poster_Tombstone.pdf下载poster)混淆估计和目标的区别过度乐观的时间表不切实际的期望一厢情愿克扣质量保证过度多任务功能蔓延吵闹拥挤的办公室压力下放弃规划风险管理不够 阅读全文

posted @ 2012-10-10 12:49 fresky 阅读(196) 评论(0) 推荐(0) 编辑

飞信登录不了,错误码10032002 的解决办法
摘要:在登录界面的下面,打开“网络设置”按钮,在“网络联接”中选择“更多设置”,“登录协议”中选择“http协议”,“确定”就行了。 阅读全文

posted @ 2012-10-10 12:31 fresky 阅读(609) 评论(1) 推荐(0) 编辑

.NET assembly结构
摘要:.NET assembly structure这篇文章讲述的很清楚。正在看CLR via C#这本书,随后会把看书的心得总结总结写出来。 阅读全文

posted @ 2012-10-09 17:11 fresky 阅读(151) 评论(0) 推荐(0) 编辑

c#中判断一个process是32bit还是64bit
摘要:下面的代码能判断一个process是32bit还是64bit. static class ProcessDetector { public static bool IsWin64(Process process) { if (Environment.Is64BitOperatingSystem) { ... 阅读全文

posted @ 2012-10-09 15:24 fresky 阅读(525) 评论(0) 推荐(0) 编辑

怎么用python和javascript把多张png拼成一个gif
摘要:Animated GIFs the Hard Way 阅读全文

posted @ 2012-10-09 10:28 fresky 阅读(212) 评论(0) 推荐(0) 编辑

IntelliTrace Collector for Visual Studio 2012
摘要:可以在production环境下手机IIS下的应用的intellitrace,用来debug。暂时没有需求,不过还是记在这里备用吧。Download: IntelliTrace Collector for Visual Studio 2012 - Microsoft Download Center - Download Details 阅读全文

posted @ 2012-10-08 13:51 fresky 阅读(216) 评论(0) 推荐(0) 编辑

Visual studio 可视化调试扩展。
摘要:Debugger Canvas,看了看介绍视频,挺酷的,但是暂时还没有2012的版本,登出了2012的,我也试试。 阅读全文

posted @ 2012-10-08 13:35 fresky 阅读(212) 评论(0) 推荐(0) 编辑

为什么有+0和-0?(zz)
摘要:Why computers have two zeros: +0 and -0 — The Endeavour 阅读全文

posted @ 2012-10-06 10:53 fresky 阅读(173) 评论(0) 推荐(0) 编辑

怎么回答“在C#里这样和那样写有什么区别”
摘要:What's the difference between doing this and that in C#?讲了怎么回答“在C#里这样和那样写有什么区别”,挺有意思的,值得借鉴,发现LINQPad真是个好东西,以后应该多用用。可以参看Use LINQPad for more than LINQ 阅读全文

posted @ 2012-10-02 01:05 fresky 阅读(198) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示