代码改变世界

随笔分类 -  点滴积累

找回保存的路由器登录密码

2012-04-30 17:45 by Johnny Qian, 1118 阅读, 收藏, 编辑
摘要: 用路由器上网的朋友免不了经常登录路由器查看网络状态或配置信息,为了免去每次输入密码的麻烦,一般我们会选择记住密码。 这样一来,如果长久不手动输入密码,密码就会容易忘记。哪天重装了系统或者用什么优化工具清除了本地存储的密码,路由器就无法登陆了。虽然说可以重置路由器到出厂状态,但是路由器里面存储了ADSL密码、MAC地址绑定等等信息,重置到出厂状态后又得重新设置,也很麻烦。那有什么办法可以在系统保存了密码的情况下得到密码的明文呢? 阅读全文

Remove “Shared Folder Synchronization” from Right Click Context Menu

2011-07-25 10:15 by Johnny Qian, 1013 阅读, 收藏, 编辑
摘要: Microsoft Office 2010 Professional and Professional Plus installs a handy option (Shared Folder Synchronization) to Desktop and Folder’s Context Menu for its Microsoft SharePoint Workspace formally known as “Groove”. 阅读全文

1033,2052 是什么意思?

2011-03-19 21:04 by Johnny Qian, 2622 阅读, 收藏, 编辑
摘要: 有时候我们去浏览软件安装后的目录,总会发现很多的安装目录下总有个名为 1033 或者 2052 目录。后来才明白,这个叫 LCID(Locale ID,区域性标识符)。 阅读全文

WCF最佳实践之 Dispose Proxy

2010-12-25 17:12 by Johnny Qian, 388 阅读, 收藏, 编辑
摘要: // Not Recommendusing (IMyContract proxy = new MyContractClient( )){ proxy.MyMethod();} // this line might throw a CommunicationObjectFaultedException// RecommendIMyContract proxy = new MyContractClient();try{ proxy.MyMethod(); proxy.Close();}catch{ proxy.Abort();}另附一篇dudu的文章:http://www.... 阅读全文

VS安装目录中的C#语言规范

2010-11-30 14:40 by Johnny Qian, 661 阅读, 收藏, 编辑
摘要: VS安装占用的磁盘空间可真大,不过这么大的容量中还隐藏着不少好东西,在VS的安装目录中就有C#的语言规范。 VS2008的安装路径:C:\Program Files\Microsoft Visual Studio 9.0\VC#\Specifications\1033,这里包含的是C# 3.0版的语言规范。 VS2010的安装路径:C:\Program Files\Microsoft Visual Studio 10.0\VC#\Specifications\1033,这里包含的是C# 4.0版的语言规范。 C#的1.2和2.0的语言规范在VS2005的安装目录中,估计现在大家也不怎么用VS2005了吧。 阅读全文

Adobe Flash Player ActiveX VS. Adobe Flash Player Plugin

2010-11-21 20:06 by Johnny Qian, 1190 阅读, 收藏, 编辑
摘要: 在Windows的卸载程序里面,看到有两个关于Adobe Flash Player的卸载项,一个是Adobe Flash Player ActiveX,另一个是Adobe Flash Player Plugin。很想搞清楚它们之间有啥关系,在网上找了找,整理如下。 阅读全文

(转)Virtual Application VS Virtual Directory

2010-09-29 11:34 by Johnny Qian, 559 阅读, 收藏, 编辑
摘要: People are always confused by these two IIS concepts, especially for the new IIS7/WAS. These are not new concepts. They are available since IIS6 on Windows 2003 Server. However the terms were misused in IIS6 and they are corrected in IIS7 in Windows Vista and higher versions of Windows. 阅读全文

How to Open Elevated Command Prompt with Administrator Privileges in Windows Vista/7

2010-09-19 11:52 by Johnny Qian, 1072 阅读, 收藏, 编辑
摘要: Windows Vista and Windows 7 power users have many ways to launch a command prompt or Windows command processor (cmd.exe) with administrator privileges, rights or credentials. It’s a security feature in Windows Vista and Windows 7 that comes with User Access Control (UAC) that all processes will launch in restricted mode unless users specifically accept the elevation confirmation. For command prompt, the commands may refuse to run or have access denied error. So users need to launch command promp 阅读全文

关闭Windows 7中的 Program Compatibility Assistant

2010-09-18 01:57 by Johnny Qian, 1296 阅读, 收藏, 编辑
摘要: 感觉微软总喜欢把简单问题复杂化。安装几个小软件也老是弹出这样的对话框。 阅读全文

What do CTP, RC, RTM, RTW mean?

2010-09-17 10:04 by Johnny Qian, 491 阅读, 收藏, 编辑
摘要: I always wanted to find the precise meaning of the acronyms Microsoft uses to refer to the stage of a product in the software release life cycle. 阅读全文

Could not write lines to file/Unable to delete file, Access to the path is denied.

2010-08-23 13:14 by Johnny Qian, 1029 阅读, 收藏, 编辑
摘要: When you get code from TFS or VSS, and you build the project, you may encounter the following error or warning message: Error : Could not write lines to file "obj\Activities.csproj.FileList.txt". Access to the path '\obj\Activities.csproj.FileList.txt' is denied. Activities Warning :Unable to delete file "\bin\Debug\MMOneTest.dll.config". Access to the path is denied. 阅读全文

用C#和本地Windows API操纵系统菜单(转)

2010-08-03 22:20 by Johnny Qian, 1787 阅读, 收藏, 编辑
摘要: .NET框架是Windows应用领域中一个非常新的技术,可以肯定在未来的一段时间内,.NET应用必须与现存的Windows技术交互作用。这种交互作用主要体现在两个领域:COM和应用编程接口(API)。为此,.NET框架在Windows API之上提供了一个OO层,但是有时候可能需要使用一个.NET不可到达的API调用。在这种情况下,可以使用.NET平台调用(P/Invoke)机制从.NET中调用C或C++函数。因为Windows API函数在DLL中,所以,P/Invoke为从.NET代码调用DLL中的C或C++函数提供了一种通用机制。 本文针对C#.NET中没有提供直接的类似SystemMenu的属性或类似GetSystemMenu的成员函数的实际,编写了一个C#类SystemMenu,从而实现了传统的对于系统菜单的操作,这是通过调用本地Windows API来完成的。 阅读全文

什么是好的编程字体:等宽字体

2010-07-30 16:55 by Johnny Qian, 4563 阅读, 收藏, 编辑
摘要: 作为程序开发者,每天打交道最多的就是程序代码了,而每天读写几千行的代码让眼睛很容易产生疲劳,我自己对此已经是深恶痛绝了.为了保护自己眼睛同时提高自己的代码读写效率,显然是要从显示程序代码的字体入手.下面讲讲我编程多年以来代码字体的选择之路. 阅读全文

Fix Unable to Pin App to Taskbar and Start Menu Error in Windows 7

2010-07-23 00:19 by Johnny Qian, 637 阅读, 收藏, 编辑
摘要: In Windows 7 , there may be occasional error where user cannot drag and drop an application program to Windows Taskbar (Superbar) and Start Menu anymore, with the icon shows a red cross when user attempts to place it on Taskbar or Start Menu. When right click on a program icon or shortcut, the “Pin to Taskbar” and “Pin to Start Menu” context menu is missing and not showing too. 阅读全文

Visual Studio 添加带快捷方式的文件

2010-07-06 10:06 by Johnny Qian, 392 阅读, 收藏, 编辑
摘要: 使用Visual Studio打开某些项目时,有时候会发现解决方案里面的文件有些“不一样” 阅读全文

您没有权限修改该网络位置的文件

2010-05-28 21:38 by Johnny Qian, 2795 阅读, 收藏, 编辑
摘要: WIN7旗舰版 保存网上的图片 或在本地修改文件后,时不时系统会弹出对话框提示: 您没有权限修改该网络位置的文件, 请与管理员联系修改管理权限。 阅读全文

Windows7:将Windows Live Messenger最小化到托盘区

2010-04-21 20:15 by Johnny Qian, 1648 阅读, 收藏, 编辑
摘要: 在Windows 7下使用WLM会发现任务栏始终会存在WLM地图标,如果想让它和以前一样待在右侧地通知区域地话,只需以Windows Vista兼容模式运行即可。这样一来,当WLM主窗口最小化以后,就不会出现在下方任务栏里,可以为节省一个图标位置。 阅读全文

设置Outlook最小化到托盘

2010-04-19 16:36 by Johnny Qian, 1236 阅读, 收藏, 编辑
摘要: 刚上班,需要经常打开Outlook,最小化后又在任务栏上占了个位置,于是想能不能将Outlook最小化到托盘区呢? 在网上一找就有办法了。 阅读全文

(转)ASP.NET中App_Code,App_Data等文件夹的作用

2009-11-10 13:52 by Johnny Qian, 395 阅读, 收藏, 编辑
摘要: 1. Bin文件夹 Bin文件夹包含应用程序所需的,用于控件、组件或者需要引用的任何其他代码的可部署程序集。该目录中存在的任何.dll文 件将自动地链接到应用程序。 2. App_Browser文件夹 该可选的文件夹包含.browser文件。.browser文件描述浏览器(不管是移动设备浏览器,还是台式机浏览器)的特 征和功能。 阅读全文

ASP.NET 如何取得 Request URL 的各个部分 (转载)

2009-07-30 11:58 by Johnny Qian, 607 阅读, 收藏, 编辑
摘要: 我们在开发Web应用程序,时常需要去解析网址(Request.Url)的每个片段,进行一些判断。 例如说 "http://localhost:1897/News/Press/Content.aspx/123?id=1#toc",我们想要取得网址里第一层目录的名字(News)用以判断不同的页面标题(Page Title)。 阅读全文