11 2012 档案

扔掉ppt,用白板吧
摘要:Killing them Softly with PowerPoint? Wake them up with Whiteboarding!这篇文章讲了为什么销售应该扔掉ppt,而用白板来给顾客讲故事,很有启发。 阅读全文

posted @ 2012-11-30 21:19 fresky 阅读(211) 评论(0) 推荐(0)

C#判断一个进程是不是64位的
摘要:C#中的Environment 类有 Is64BitOperatingSystem 属性,可以判断当前操作系统是不是64bit的。还有Is64BitProcess 属性,可以判断当前进程是不是64bit的。 但是如果要判断别的进程是不是64bit的,就需要用windows API,IsWow64Process。 static class ProcessDetector { ... 阅读全文

posted @ 2012-11-27 21:25 fresky 阅读(2559) 评论(3) 推荐(1)

C#中你可能不知道的8件事(zz)
摘要:8 things you probably didn’t know about C# » DamienG1. Indexers can use params2. Strings defined multiple times in your code are folded into one instance3. Exposing types as a less capable type doesn’... 阅读全文

posted @ 2012-11-26 21:17 fresky 阅读(147) 评论(0) 推荐(0)

C#中你可能不知道的8件事(zz)
摘要:8 things you probably didn’t know about C# » DamienG1. Indexers can use params2. Strings defined multiple times in your code are folded into one instance3. Exposing types as a less capable type doesn’... 阅读全文

posted @ 2012-11-26 21:13 fresky 阅读(175) 评论(0) 推荐(0)

通过注册表查看 .NET Framework的版本信息
摘要:这里详细说明了怎么通过注册表查看 .NET Framework的版本信息。.NET FrameworkService Pack LevelRegistry Key NameValue4 - ClientOriginal ReleaseHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\ClientName: Instal... 阅读全文

posted @ 2012-11-26 21:12 fresky 阅读(1761) 评论(0) 推荐(0)

Visual Studio中打开编译器中有虚函数的类的析构函数不是虚函数的警告——/we4265
摘要:C++中一个类如果有虚函数,那么它的析构函数应该也是虚的,否则会出现很多问题。其实visual studi中有一个专门的warning是给这个的,Compiler Warning (level 3) C4265:'class' : class has virtual functions, but destructor is not virtual但是这个warning默认是关闭的,这里可以看所有默... 阅读全文

posted @ 2012-11-25 22:03 fresky 阅读(434) 评论(0) 推荐(0)

C++编译器什么时候为我们自动生成拷贝构造函数?
摘要:StackOverflow上有个一个有趣的问题,copy by value to function params produce two objects in vs2012 给出程序: #include <iostream>using namespace std;class A{public: A() { cout << "1" << endl; } ~A() { cout ... 阅读全文

posted @ 2012-11-25 21:33 fresky 阅读(1894) 评论(0) 推荐(0)

用PBKDF2 或BCrypt 来存储密码
摘要:Taking Password Storage Up A Notch | 8th Light中介绍了只是用Hash加盐的做法是不够安全的,应该用PBKDF2 或 BCrypt来做密码存储算法。PBKDF2用在了 iOS, Android, 和LastPass。BCrypt用于OpenBSD。Rfc2898DeriveBytes是C#的一个实现。 阅读全文

posted @ 2012-11-22 23:51 fresky 阅读(616) 评论(0) 推荐(0)

Prezi——一个超cool的presentation网站
摘要:Prezi - Ideas matter. 阅读全文

posted @ 2012-11-22 18:14 fresky 阅读(237) 评论(0) 推荐(0)

有空应该看看Rx是怎么玩的
摘要:Reactive Extensions (Rx) is now Open Source - Scott Hanselman 阅读全文

posted @ 2012-11-22 17:27 fresky 阅读(161) 评论(0) 推荐(0)

(C#)IdleMonitor——实现监测用户是否离开应用程序
摘要:写了一个C#的小程序,用来监测用户是否离开应用程序,就像MSN,QQ的离开功能一样。代码在github上。简单接介绍一下: 1. IdleMonitor abstract class public abstract class IdleMonitor { ... public event EventHandler TimeoutEventHand... 阅读全文

posted @ 2012-11-22 10:18 fresky 阅读(593) 评论(0) 推荐(0)

通过位操作简洁的写KB,MB,GB
摘要:1 << 10 = KB, 1 << 20 = MB, 1 << 30 = GB ... 所以如果想开一个2KB的buffer,可以写2<<10,比较简洁。 阅读全文

posted @ 2012-11-19 11:03 fresky 阅读(202) 评论(0) 推荐(0)

[ -~] 所有的可打印字符
摘要:正则表达式[ -~], 可以匹配ASCII中所有的可打印字符。 阅读全文

posted @ 2012-11-19 10:03 fresky 阅读(686) 评论(0) 推荐(0)

20个最好的在线IDE
摘要:The top 20 online coding tools | Feature | .net magazine 阅读全文

posted @ 2012-11-17 22:02 fresky 阅读(477) 评论(0) 推荐(0)

bug值多少钱(图片转自typemock)
摘要: 阅读全文

posted @ 2012-11-15 09:57 fresky 阅读(165) 评论(0) 推荐(0)

导航