艾榕@编程的乐趣 享受编程,享受生活

25二/100

在.NET项目中使用log4net

log4net是Apache开发的一个用于.NET应用程序的logger工具,log4net是开源的,使用Apache License, Version 2.0开源协议。 Read more...

7二/105

使用InternalsVisibleTo给assembly添加“友元assembly”

C#的internal关键字可以使标记的方法,字段或者属性等等只能在当前assembly内部使用,那么如果其他的assembly需要使用这个internal的方法的时候怎么办呢?.NET提供了一种类似于C++中的友元类的方式来完成这个功能,那就是使用InternalsVisibleTo Read more...

6二/103

Wordpress插件StyleBox

StyleBox是wordpress平台下的一个插件,给wordpress文章编辑提供了强大的“提示”功能,很多时候在写一篇blog的时候很希望能突出显示一些文字,但却苦于文字颜色太过于单调,不能突出想说明的重点,StyleBox正好弥补了这个缺陷,它使用“图文并茂”的方式让blogger们可以随心所欲的突出自己想说的。 Read more...

6二/101

很漂亮的适合在windows7&vista下使用的壁纸


一直在使用windows7,从windows7的beta版到现如今的RTM,一直深深的被windows7强大的功能和华丽的效果所吸引,另外更好的就是安全性能的提升也让我对windows7爱不释手,虽然windows7的一些操作习惯于XP时代有很大的差别,不过人还是要与时俱进的嘛!在用windows7之前用过一段时间的Vista,只用了不到一个月就受不了了,直接卸掉的,虽然我的Vista还是正版的旗舰版。 Read more...

标签: 1个评论
1二/100

让Linux走出虚拟机

这个命题的提出,等于承认了一个前提。在绝大多数主流用户的电脑中,因为种种原因,或许虚拟机才是Linux最好的栖身之处。Linux生活在Windows的阴影之下。 Read more...

4一/100

今日嘀咕(2010.01.03-01.04)

哭,并不代表我屈服;退一步,并不象征我认输; 放手,并不表示我放弃;微笑,并不意味我快乐 2010-01-03 12:39:11 Read more...

7十二/090

How to use Sql Azure

Description:
Sql Azure is the cloud computing service provided by Microsoft, which is @CTP version now.  Sql Azure will provide you databases on the cloud level, this means you can host your data on the MS’s database server, definitely, it will be more safety.
Apply for an Sql Azure account:
Even Sql Azure is @CTP, but your still need to use a activation code to get an Azure account,  go to https://sql.azure.com and apply for an account, you will probably get your activation code after several hours.
Create an databaseGo to https://sql.azure.com and login with your username, click on the “Create Database”  button to create a new database, in this document, I will use the “FirstTestDb”  as my demo database name.
Connect to Sql Azure from the command lineBefore connect to Sql Azure, you need to get the following from your Sql Azure portal page:
Server: which is of format ****.database.windows.netServerName: which is the first part of the Server.
Username: the administrator name when your active your Sql Azure account.
Password: the password when you active your Sql Azure account.
For example: my server is fx50bskenx.database.windows.net, so my server name is fx50bskenx,  my username is wlmzfxType sqlcmd -S fx50bskenx.database.windows.net -U wlmzfx@fx50bskenx -d FirstTestDb at your command line, and then type your password, once you see the 1> from your command window, that means you have connected to Sql Azure successfully.
Note: Sql Azure does not support USE databasename command for the moment, so you need to specify your database when typing the command.
Execute Sql command against Sql AzureCreate a new table Person:
1> CREATE TABLE Person (Id INT IDENTITY(0,1) PRIMARY KEY, FirstNameNVARCHAR(50))2> GOInsert a new row to the Person table:
1> INSERT INTO Person (FirstName) VALUES(N'Wang Pan');2> GONote: type one more GO at a new line at the end of your command, I have tried to use ; to specified end of and command, but it does not work.

Description:

Sql Azure is the cloud computing service provided by Microsoft, which is @CTP version now.  Sql Azure will provide you databases on the cloud level, this means you can host your data on the MS’s database server, definitely, it will be more safety. Read more...

7十二/090

性能: 字符串倒序算法 (C# version)

C#中有个string类型,是个很特殊的reference type, 存储在内存中一个特殊的“静态池”中,这里是MSDN关于string的介绍:http://msdn.microsoft.com/zh-cn/library/362314fe(VS.80).aspx Read more...

2十二/092

国内的几种【微博】服务使用评测

关于微博,我个人的理解就是blog的一个微缩版本,可以供博主快速的发布自己的想法而不必经过一系列繁琐的登陆,格式调整等程序。点击这里查看百度百科对微博的解释 Read more...

24七/090

Update the application configuration file automatically in C#

The structure of an application’s configuration file always include: Read more...