算神工作室博客

分享技术,分享身边的点滴

打上了VS2008SP1补丁

clock 八月 13, 2008 09:11 by author 算神

在大家都在看奥运的时候,微软悄悄的发布了VS2008SP1(而且中文版也同步发布了),国内某知名技术网站因受到同机房转播奥运的网站的牵连被关停(这个一个搞对手网站的好时机,只要买通他同机房的网站转播奥运就行了),相信很多人都还不知道SP1发布的消息

这次VS2008SP1有很多不错的更新
支持SQL Server 2008
ADO.NET Entity设计器
Visual Basic和Visual C++组件和工具(包括基于MFC的Office 2007风格的”Ribbon”组件,这个组件及其漂亮的说)
对JavaScript丰富的支持,加强了AJAX和数据工具,改进了Web站点的部署方式。
改进了WCF,让开发者对访问数据和服务的方式有更多的控制权。
WPF和可视化设计器的改进
专门用于客户端部署的简化版.Net Framework(这个优化运行时包的大小小于20MB,.Net Framework 3.5约180M大)
更多的请去看原文吧:http://msdn.microsoft.com/en-us/vstudio/products/cc533447.aspx

不过这次的补丁包也估计是微软发布最BT的一个,补丁包有898M大,完全安装会吃掉3.8G的系统盘空间和600M安装盘空间,安装过程中最大需要6.6G硬盘空间做缓冲,安装耗时一个晚上

在这次安装补丁包的过程中终于搞懂了微软送我的那件衣服背后的“WOW”这个单词的意思了,当然这个不是指魔兽世界(World Of Warcraft),而是Wow64 (Win32 emulation on 64-bit Windows)是使32位的x86应用程序能够在64位的Windows上执行的软件。

关于这个补丁的下载和一些相关问题的解决请访问:http://bbs.lishewen.com.cn/showforum-2.html

第一个打分

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


VB.Net中使用控件数组

clock 七月 24, 2008 07:44 by author 算神

为了对下的兼容VB.Net事实上是支持VB6的控件数组的,只是使用方法没有VB6那样方便,他对应的控件数组类位于Microsoft.VisualBasic.Compatibility.VB6命名空间下

声明方法:

Public WithEvents Command1 As Microsoft.VisualBasic.Compatibility.VB6.ButtonArray

Me.Command1 = New Microsoft.VisualBasic.Compatibility.VB6.ButtonArray(components)

往控件数组里面添加控件

 Public WithEvents _Command1_1 As System.Windows.Forms.Button
 Public WithEvents _Command1_0 As System.Windows.Forms.Button

  Me._Command1_1 = New System.Windows.Forms.Button
  Me._Command1_0 = New System.Windows.Forms.Button

  Me.Command1.SetIndex(_Command1_1, CType(1, Short))
  Me.Command1.SetIndex(_Command1_0, CType(0, Short))

当然你也可以把该命名空间下的类放到工具箱里,然后通过拖放操作完成控件数组的添加

当前评分 5.0 , 共有 2 人参与

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


CSS新窗口打开网页

clock 六月 28, 2008 16:11 by author 算神
a:active {text:expression(target="_blank");}

第一个打分

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Discuz!NT百度论坛收录协议的问题

clock 六月 11, 2008 14:56 by author 算神

今天查看了一下百度论坛收录协议,其中有一点

第三步:使用XML文件
         请将XML文件命名为sitemap_baidu.xml上传到您网站根目录下,并保证文件所在的url地址能够被百度spider正常访问。例如,网站为post.baidu.com,则将xml文件上传至post.baidu.com/sitemap_baidu.xml
        当百度spider发现了xml文件后,会根据上面提供的参数自动对xml文件进行更新,并抓取高质量的内容。
        注意: 百度spider不保证一定能收录您提交的全部内容。

按照上面的说法对于论坛http://bbs.lishewen.com.cn/,百度的协议路径应该为http://bbs.lishewen.com.cn/sitemap_baidu.xml,而Discuz!NT的协议路径则是http://bbs.lishewen.com.cn/tools/sitemap.aspx,这样一来百度的虫虫根本不会在上面爬,Discuz!NT对百度的优化形同虚设

知道上面问题的原因,我们可以有以下的解决办法:

第一种,把sitemap.aspx产生的内容复制保存一份到论坛的根目录,并命名为sitemap_baidu.xml

如果你有采用官方的UrlReWriter,则可以采用第二种办法

在UrlReWriter的配置文件里面加多一条规则:RewriteRule ^(.*)/sitemap_baidu.xml  $1/tools/sitemap.aspx

本人建议用第二种办法,因为这样可以自动更新

当前评分 5.0 , 共有 3 人参与

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


微软发布WSS3.0 Tools For Vs2008 v1.2

clock 六月 11, 2008 09:00 by author 算神

微软在早些时候发布了Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2

里面包含有

Visual Studio 2008 项目模板

  • Web Part
  • Team Site Definition
  • Blank Site Definition
  • List Definition
  • Empty SharePoint Project  
  • Visual Studio 2008 Item Templates

  • Web Part
  • Custom Field
  • List Definition (with optional Event Receiver)
  • Content Type (with optional Event Receiver
  • Module
  • List Instance
  • List Event Handler
  • Template
  • SharePoint 解决方案生成器

    喜欢的朋友可以到以下地址下载

    http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68&DisplayLang=en

    第一个打分

    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5


    使用crossdomain.xml让Silverlight可以跨域传输数据

    clock 六月 10, 2008 15:47 by author 算神

    今天做Silverlight时要使用网站的RSS数据,查了一下资料,发现要使用到一个crossdomain.xml的文件,把经验与大家分享一下

    crossdomain.xml文件格式

    crossdomain.xml的格式非常简单,其根节点为<cross-domain-policy> ,其下包含一个或多个<allow-access-from>节点,<allow-access-from>有一个属性domain,其值为允许访问的域,可以是确切的 IP 地址、一个确切的域或一个通配符域(任何域)。下边是两个例子:

    程序代码
    <?xml version="1.0"?>
    <cross-domain-policy>
      <allow-access-from domain="www.lishewen.com.cn" />
      <allow-access-from domain="*.lishewen.com.cn" />
      <allow-access-from domain="222.217.221.16" />
    </cross-domain-policy>

    程序代码
    <?xml version="1.0"?>
    <cross-domain-policy>
      <allow-access-from domain="*" />
    </cross-domain-policy>

    第二个例子允许任何域的访问。对于crossdomain.xml文件存放位置,建议将其存放于站点根目录中!

    如:http://bbs.lishewen.com.cn/crossdomain.xml

    在这我也弄了个Silverlight的例子来测试

    http://silverlight.lishewen.net.cn/SyndicationFeedReader/

    第一个打分

    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5


    随笔(2008-6-10)

    clock 六月 10, 2008 11:55 by author 算神

    今天进行Silverlight编程时出现这样的错误

    .NET Runtime version 2.0.50727.1434 - 执行引擎错误(7A06491A) (0)

    在调试时VS2008和IE会自动关闭

    检查了一个上午发现原来是一处地方的委托写错了Tongue out

    第一个打分

    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5


    微软推出.NET的轻量级版本

    clock 六月 4, 2008 10:44 by author 算神

    为满足客户端程序的需要,微软创建了.NET框架客户端子集(.NET Framework Client Profile)。

    目前的版本为27MB,不算小,但是已经比完整的版本小15%了。对于那些需要在整个公司或者互联网上发布的客户端应用程序来说,这的确是一个受欢迎的改变。尺寸的减少是因为去除了服务器方面的组件,例如System.Web。

    目前保留的程序集(注:目前这个是Beta版,到正式版的时候可能会有差异):

    BCL, "Core FX," and LINQ

    • CustomMarshalers
    • ISymWrapper
    • mscorlib
    • sysglobl
    • System
    • System.AddIn
    • System.AddIn.Contract
    • System.Configuration
    • System.Configuration.Install
    • System.Core
    • System.Security

    Visual Basic and Visual C++ Language Support

    • Microsoft.VisualBasic
    • Microsoft.VisualC

    XML

    • System.Xml
    • System.Xml.Linq

    Windows Forms

    • Accessibility
    • System.Drawing
    • System.Windows.Forms

    WPF

    • PresentationCore
    • PresentationFramework
    • PresentationFramework.Aero
    • PresentationFramework.Classic
    • PresentationFramework.Luna
    • PresentationFramework.Royale
    • PresentationUI
    • ReachFramework
    • System.Printing
    • System.Windows.Presentation
    • UIAutomationClient
    • UIAutomationClientsideProviders
    • UIAutomationProvider
    • UIAutomationTypes
    • WindowsBase
    • WindowsFormsIntegration

    ClickOnce

    • System.Deployment

    WCF, Web Services, Remoting, and Serialization

    • System.IdentityModel
    • System.Runtime.Remoting
    • System.Runtime.Serialization
    • System.Runtime.Serialization.Formatters.Soap
    • System.ServiceModel
    • System.ServiceModel.Web
    • System.ServiceModel.Install
    • System.Transactions
    • System.Web.Services

    Data Access

    • System.Data
    • System.Data.SqlXml
    • System.Data.DataSetExtensions
    • System.Data.Services.Client

    Peer to Peer

    • System.Net

    Active Directory and Enterprise Services

    • System.DirectoryServices
    • System.EnterpriseServices

    具体去除的程序集:

    • jsc
    • Microsoft.JScript
    • Microsoft.Vsa
    • System.DirectoryServices.Protocols
    • System.Management
    • System.Messaging
    • System.ServiceProcess
    • System.Web
    • System.Web.Extensions
    • System.Web.RegularExpressions

    使用.NET Framework Client Profile需要安装Visual Studio 2008 SP1,在项目属性里勾选"Client-only Framework subset"

    Client-only Framework subset checkbox

    第一个打分

    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5


    FTP批处理

    clock 五月 28, 2008 18:17 by author 算神

    今天接到一个需求要用到批处理文件操作FTP,把方法分享一下

    1、首先新建一个文本文件,我这命名为ftp.txt,在里面输入要批处理的内容,我这为

    ftpuser
    123456
    get temp.txt
    quit

    上面的是FTP的命令,不懂的可以看FTP命令详解

    2、新建一个bat文件,输入以下命令,保存,运行

    ftp -s:ftp.txt 121.31.73.154

    这样一个简单的FTP批处理就完成了

    第一个打分

    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5


    让网站变灰色的CSS代码

    clock 五月 19, 2008 10:35 by author 算神

    <style type="text/css">
    <!--
    img { filter: gray(); }
    body * { filter: gray(); }
    -->
    </style>

    第一行是让图片变灰的

    第二行是让网站整体变灰

    最后让我们为灾区的人民祈祷,天佑中国

    第一个打分

    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5


    Sign in

    广告

    Calendar

    <<  十一月 2008  >>
    星期星期星期星期星期星期星期
    272829303112
    3456789
    10111213141516
    17181920212223
    24252627282930
    1234567

    View posts in large calendar

    最新文章

    最新评论

    Comment RSS