Hello word!
Welcome to my world. This is my another new blog.
这个是我的第四个Blog了, 每次更换都在不同的时期.
第一个: 2004年-2006年 大学中的一些趣事和牢骚.
第二个: 2006年-2010年 英国研究生和工作的生活记录.
第三个: 2008年-2010年 当时作为C#程序员的一些工作心得和代码记录.
现在的第四个Blog将用于记录我的创业过程, 无论成功或失败都希望我能向以前一样一如既往的坚持, 坚持, 再坚持.
PS: 感谢利达花费几个小时帮我搭建 WordPress平台.
Filed under: Uncategorized | Leave a Comment
Tags: yiwu
Upgrading the MVC2 to MVC3
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!
Filed under: C#, MVC, System | Leave a Comment
Tags: C#, MVC, Upgrading
How to use DorpBox in China
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
Filed under: Windows 7 | Leave a Comment
Tags: Dropbox, tips
refresh page through jquery
Need to create a button to do this.
$(“#myButton”).click(function() {
location.reload();
});
Filed under: Jquery, Uncategorized | Leave a Comment
Tags: juqery
First day as Salesman
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
Filed under: Uncategorized | Leave a Comment
Tags: sales man
- Publish the ASP.NET MVC project in the “Release Mode“, it will improve the Html.RenderPartial‘s performance and avoid “file not found exception”;
- Set the debug=”false” in the web.config file, references are here and here;
- Implement the cache policy;
- Use the external JavaScript and CSS files;
- Use tools to analyse the web app: Fiddler2, FireBug and YSlow.
Filed under: C#, MVC | Leave a Comment
Tags: ASP.NET MVC, C#, tools
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.
Filed under: C# | Leave a Comment
Tags: AnkhSVN, Visual Studio 2010, VisualSVN
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]
Filed under: SQL Sever 2008 | Leave a Comment
Tags: T-SQL
Search
-
Blogroll
Recent Entries
- Hello word!
- Upgrading the MVC2 to MVC3
- 宝宝出生 2011年5月14日
- AspNetHostingPermission Error
- How to use DorpBox in China
- refresh page through jquery
- First day as Salesman
- How to improve the ASP.NET MVC2 web app performance
- I’m with Visual Studio 2010 Ultimate now
- Drop all the index from a database
- Aap.Net: Apply DateTime format to a Dropdownlist
Categories
- Asp.Net (12)
- baby (1)
- C# (24)
- Entity Framework (1)
- IIS (2)
- Jquery (1)
- MOSS (1)
- MVC (6)
- NHibernate (2)
- SharePoint (1)
- SQL Sever 2008 (2)
- System (2)
- T-SQL (1)
- Uncategorized (9)
- Windows 7 (2)
- XSLT (3)



