Hello word!

20Sep11

Welcome to my world. This is my another new blog.

这个是我的第四个Blog了, 每次更换都在不同的时期.

第一个: 2004年-2006年 大学中的一些趣事和牢骚.

第二个: 2006年-2010年 英国研究生和工作的生活记录.

第三个: 2008年-2010年 当时作为C#程序员的一些工作心得和代码记录.

现在的第四个Blog将用于记录我的创业过程, 无论成功或失败都希望我能向以前一样一如既往的坚持, 坚持, 再坚持.

PS: 感谢利达花费几个小时帮我搭建 WordPress平台.


It’s have been a while about without coding, but it is still quite interesting to see my own work built and loaded in the browser. This is a fantastic feeling.

It took me about an hour to workout the upgrading the MVC2 to MVC3. I think it is very simple (Microsoft has done the dirty work).

Now I need to upgrade the project with NHibernate to 3.0, and then put them on the live server.

I hope it could be done in 2 hours.

Bless me!


妈妈在经历24小时的痛苦后, 小宝宝终于顺利出生.

baby

baby


Check this.

IIS7 Application Pool settings


It’s shame that Dropbox has been blocked in China, but with a small change we can make the service to be avaliable.

C:\windows\system32\drivers\etc\Hosts

Add the following 3 lines to the host file.

174.36.30.67 dropbox.com
174.36.30.71 www.dropbox.com
75.101.129.115 dl.dropbox.com

———————-

174.36.30.67 dropbox.com
174.36.30.71 www.dropbox.com
174.36.30.70 www.dropbox.com
75.101.129.115 dl.dropbox.com
75.101.159.151 dl-web.dropbox.com
174.36.30.67 forums.dropbox.com


Need to create a button to do this.

$(“#myButton”).click(function() {

location.reload();

});


I’m a salesman now and have a different life. The marketing analysis and business writing skills will be the my first tasks to learn.

106.85


  1. Publish the ASP.NET MVC project in the “Release Mode“, it will improve the Html.RenderPartial‘s performance and avoid “file not found exception”;
  2. Set the debug=”false” in the web.config file, references are here and here;
  3. Implement the cache policy;
  4. Use the external JavaScript and CSS files;
  5. Use tools to analyse the web app: Fiddler2, FireBug and YSlow.

I’m real happy, one of good friends he offers me a Visual Studio 2010 Ultimate version. I don’t really want to use my company’s copy, because I’m leaving next week.

I have also moved to AnkhSVN from VisualSVN, my current licence does not support the VS 2010, and this is mean I have to pay for the new version. Hmmm…. AnkhSVN I’m coming.


DECLARE @indexName VARCHAR(128)
DECLARE @tableName VARCHAR(128)

DECLARE [indexes] CURSOR FOR

    SELECT        [sysindexes].[name] AS [Index],
            [sysobjects].[name] AS [Table]

    FROM        [sysindexes]

    INNER JOIN    [sysobjects]
    ON        [sysindexes].[id] = [sysobjects].[id]

    WHERE        [sysindexes].[name] IS NOT NULL
    AND        [sysobjects].[type] = 'U'

OPEN [indexes]

FETCH NEXT FROM [indexes] INTO @indexName, @tableName

WHILE @@FETCH_STATUS = 0
BEGIN
    PRINT 'DROP INDEX [' + @indexName + '] ON [' + @tableName + ']'

    FETCH NEXT FROM [indexes] INTO @indexName, @tableName
END

CLOSE        [indexes]
DEALLOCATE    [indexes]



Follow

Get every new post delivered to your Inbox.