technofantasy

博客园 首页 新随笔 联系 订阅 管理
  22 Posts :: 16 Stories :: 75 Comments :: 1 Trackbacks

2008年6月7日 #

微软visual Studio 2008社区发布会长沙站于2008年6月1日顺利结束了。活动很成功,不多说,上PP,



活动发的礼品袋



每人发了付全国俱乐部领导人的扑克牌,数量有限,先来先得,能找到我和贺主席不?




偶先来个开场白。



微软的讲师同志讲到兴起处



讲师同志又在忽悠我们群众呢




会场内部,来了百十来号人



贺主席在认真听讲



中场休息




会后部分俱乐部成员的合影



会场里面还是不少程序员MM的。。



负责会务工作的MM,辛苦了!!!



活动的大奖,Windows Vista Ultimate版




posted @ 2008-06-07 15:44 陈锐 阅读(453) 评论(7) 编辑

2008年5月26日 #

微软 Visual Studio 2008 社区发布全国巡展长沙站将于6月1号下午在富丽华大酒店召开。活动议程:

13:00 - 13:40 来宾签到
13:40 - 14:25 如何使用 Visual Studio 2008 开发下一代 Web 应用程序
14:25 - 15:05 开启 Windows Mobile 美丽新世界
15:05 - 15:15 休息
15:15 - 16:00 利用 Silverlight 及 Expression 构建强大的用户体验
16:00 - 16:35 Partner 创新经验及机遇——微软 SaaS 孵化计划
16:35 - 17:05 AMD助力中小企业提供高效节能计算机技术
17:05 - 17:20 Q&A 及抽奖

活动注册URL:
http://www.microsoft.com/china/msdn/08rs/cs.html


会议时间:
2008 年 6 月 1 日 星期日 13:00 - 17:20
会址详情:
长沙富丽华大酒店 3 楼多功能国际会议厅
地址:长沙八一路 88 号(乘 1 路、136 路、112 路、127 路“蓉园路口”下向西 100 米)


奖品包括:
Windows Vista Ultimate版(正式版哦,不是试用版)
Windows Server 2008, Visual Studio 2008, SQL Server 2008 三合一
其它开发光盘

微软T-Shirt
posted @ 2008-05-26 10:39 陈锐 阅读(515) 评论(3) 编辑

2007年3月5日 #

今天突然发现Live Messenger上很多好友都出现了user posted image的图标,感觉挺新鲜的。而且好多组合都可以打出这个表情。上网搜索了一下,原来这是微软的一个捐助计划。只要在Live Messenger上把以下面任一词组放到你的昵称里,每发起一次对话,微软就会给一个叫ninemillion.org的网站捐助以帮助一些难民。
*sierra
*bgca
*9mil
*hsus
*komen
*one
*mssoc
*care
*acs
*oxfam
*mod
*help
*red+u
*unicef
*wwf
*naf
据说除了Live Messenger之外,Live Search和Live Sapce都有相关的捐助活动。


大家都在自己的MSN里面加上这个表情吧。
posted @ 2007-03-05 15:59 陈锐 阅读(599) 评论(5) 编辑

2007年3月3日 #

最近写代码需要实现文件权限管理,这个通过一个自定义的HttpHandler就可以实现。但是
下载文件的时候需要修改文件名,比如在服务器上存储的文件是一个类似ab739s48fssa.txt
的文件,但是用户下载看到的是readme.txt。网上查了半天,其实实现很简单,下面是实现
步骤。
首先需要在web.config终定义自定义的HttpHandler:
    <httpHandlers>
      
<add verb="*" path="Attachments/*.*" type="AttachmentHandler" />
    
</httpHandlers>
然后实现自定义的AttchmentHandler类:
Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.Sql
Imports System.Data.SqlClient
Imports System.Diagnostics
Imports System.IO

Public Class AttachmentHandler
    
Implements IHttpHandler


    
Public ReadOnly Property IsReusable() As Boolean Implements System.Web.IHttpHandler.IsReusable
        
Get
            
Return True
        
End Get
    
End Property


    
Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest
        
'判断用户是否通过验证
        If (context.User.Identity.IsAuthenticated) Then
            
Dim splitter As String() = context.Request.FilePath.Split("/")
            
'获得用户选择下载的文件名
            Dim filename As String = splitter(UBound(splitter))
            
'获得文件全路径名
            Dim fullfilename As String = context.Server.MapPath(context.Request.FilePath)

                        
'指定用户下载时的文件名
            Dim orifilename As String = "readme.txt"
            
'获得文件类型
            Dim strContentType As String = GetFileContentType(filename)

            context.Response.ContentType 
= strContentType
            context.Response.AppendHeader(
"content-disposition""attachment;filename=" + orifilename)

            
'读取文件内容到字节数组
            Dim file As FileStream = _
                    
New FileStream(fullfilename, FileMode.Open, FileAccess.Read)
            
Dim buff(file.Length) As Byte
            file.Read(buff, 
0, buff.Length)
            
'将字节数组中的内容输出到输出缓存
            context.Response.OutputStream.Write(buff, 0, buff.Length)
        
Else
            context.Response.Redirect(
"Login.aspx")
        
End If
    
End Sub

End Class

实现文件改名的关键就是在Response头部加入:
context.Response.AppendHeader("content-disposition", "attachment;filename=" + orifilename)
其中orifilename就是想让用户看到的文件名。
posted @ 2007-03-03 00:05 陈锐 阅读(186) 评论(0) 编辑

2006年12月20日 #

想知道你自己的博客的性别么?进入:http://www.yodao.com/blogender/。
输入你的博客地址就可以了,下面是我的博客性别:
博客园-technofantasy
93.0%男性倾向,7.0%女性倾向
评点:您的文风冷静而镇定,言语间展现出强悍的思辨能力与恢宏的胸襟,一个男子汉的阳刚形象跃然纸上。
yodao | 博客男女
posted @ 2006-12-20 17:33 陈锐 阅读(103) 评论(0) 编辑

2006年10月25日 #

posted @ 2006-10-25 09:55 陈锐 阅读(463) 评论(20) 编辑

2006年10月17日 #

摘要: 湖南微软.NET俱乐部成立大会将于2006年10月21日举办,地点在51广场口腔医院后的牛耳教育中心8楼。活动报名QQ群:18993902活动的流程安排如下:1:30-2:00 签到2:00-2:30 介绍俱乐部2:30-2:45 介绍 LOVE@Community 2:50-3:50 办公无处不在-Office 2007客户端开发(或Vista开发相关)4:00-4:30 博文视点和.NET俱...阅读全文
posted @ 2006-10-17 17:02 陈锐 阅读(419) 评论(4) 编辑

2006年10月2日 #

posted @ 2006-10-02 10:50 陈锐 阅读(4092) 评论(0) 编辑

2006年9月6日 #

摘要: 'InsertsthepictureatthecurrentinsertionpointPublicFunctionInsertPicture()FunctionInsertPicture(RTBAsRichTextBox,picAsStdPicture)DimstrRTFallAsStringDimlStartAsLongWithRTB.SelText=Chr(&H9D)&.Se...阅读全文
posted @ 2006-09-06 17:20 陈锐 阅读(1385) 评论(0) 编辑

摘要: Properties - all sizes are in twipsxLeft - Position of the left edge of the tableisCentered - Set to True to center the tableRows - Sets or returns the number of rows in the tableColumns - Sets or ret...阅读全文
posted @ 2006-09-06 17:17 陈锐 阅读(1557) 评论(1) 编辑