06 2009 档案

摘要:生活中我们经常都会遇到美味,但是又因为高热量致胖。但是营养学家建议配合适当饮食可以让人保持健康。1.芝士 芝士在多种西式菜肴、甜品中都是常见的材料,虽然它含有丰富的钙质,但同时有大量盐分和脂肪,多吃可以导致肥胖、高血压、湿疹、皮肤过敏等问题。吃了芝士后,最佳的补救方法是进食乳酸菌,以抑制酵母菌的繁殖。2.高淀粉食物 摄取过量淀粉质,最终会转化为脂肪。所以吃了这些食物之后吃些苹果醋等,加快消化淀粉质... 阅读全文
posted @ 2009-06-30 16:05 94cool 阅读(325) 评论(0) 推荐(0) 编辑
摘要:<imgsrc="Images/book.jpg"border="0"alt="test"style='position:absolute;'ondragstart='setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;'ondrag='this.style.left=event.x-xx;this.style.... 阅读全文
posted @ 2009-06-30 08:49 94cool 阅读(235) 评论(0) 推荐(0) 编辑
摘要:随着Internet技术的发展和跨平台需求的日益增加,Web Services的应用越来越广,我们不但需要通过Web Services传递字符串信息,而且需要传递二进制文件信息。下面,我们就分别介绍如何通过Web Services从服务器下载文件到客户端和从客户端通过Web Services上载文件到服务器。一:通过Web Services显示和下载文件我们这里建立的Web Services的名称... 阅读全文
posted @ 2009-06-29 17:02 94cool 阅读(169) 评论(0) 推荐(0) 编辑
摘要:private static int ChangeInt(byte[] bytes) { if (BitConverter.IsLittleEndian)//字节顺序 java、c#不同需要判断 { int len = bytes.Length; byte[] by = new Byte[len]; for (int i = 0; i < len; i++) { by[i] = bytes[... 阅读全文
posted @ 2009-06-29 17:01 94cool 阅读(446) 评论(0) 推荐(0) 编辑
摘要:谈到字节序的问题,必然牵涉到两大CPU派系。那就是Motorola的PowerPC系列CPU和Intel的x8 div:eq(0) div:eq(9) div:eq(2) div:eq(0) div:eq(4) br:eq(1)" anchorType="previous" jQuery1246265583906="6"6系列CPU。PowerPC系列采用big endian... 阅读全文
posted @ 2009-06-29 17:00 94cool 阅读(324) 评论(0) 推荐(0) 编辑
摘要:Big-Endian 最重要的字节在词的左端。 Little-Endian 最重要的字节在词的右端。 通常,您不必为在网络上发送和接收的数据的字节顺序转换担心,但在有些情况下,您必须转换字节顺序。 何时必须转换字节顺序 在下列情况中需要转换字节顺序: 传递的信息需要由网络解释(与发送到另一台计算机的数据相反)。例如,可能传递端口和地址,这些信息 必须为网络理解。 与之通信的服务器应用程序不是 MF... 阅读全文
posted @ 2009-06-29 16:59 94cool 阅读(207) 评论(0) 推荐(0) 编辑
摘要:using System;using System.IO;using System.Drawing;using System.Drawing.Imaging;public class ImageThumbnail{ public Image ResourceImage; private int ImageWidth; private int ImageHeight; public string E... 阅读全文
posted @ 2009-06-27 10:04 94cool 阅读(159) 评论(0) 推荐(0) 编辑
摘要:最普通的方法 从byte[] 到 uintb=newbyte[]{0xfe,0x5a,0x11,0xfa};u=(uint)(b[0]|b[1]<<8|b[2]<<16|b[3]<<24);从int 到 byte[]b[0]=(byte)(u);b[1]=(byte)(u>>8);b[2]=(byte)(u>>16);b[3]=(byte... 阅读全文
posted @ 2009-06-27 10:03 94cool 阅读(224) 评论(0) 推荐(0) 编辑
摘要:十佳剧情片: 1) 肖申克的救赎(刺激1995):男人必看的励志影片。 2) 教父(1、2):经典黑帮片,有此作品,其他同类一概低头。 3)美国往事:整个人生都在里面。 4)天堂电影院:每个男人的童年回忆,太经典了。 5)无主之城:人家怎么能拍出这么牛的电影! 6)活着:也许是中国目前最伟大的电影。 7) 阿甘正传:教导所有的人要去宽容别人,傻就是福气。 8)勇敢的心:民族自尊的好教材,希望大家要... 阅读全文
posted @ 2009-06-25 15:00 94cool 阅读(343) 评论(0) 推荐(0) 编辑
摘要:非模态刷新父页面:window.opener.location.reload(); 模态刷新父页面:window.dialogArguments.location.reload(); Response.Write("<script language=\"javascript\">\r\n"); Response.Write("<!--\r\n"); Response.Write(... 阅读全文
posted @ 2009-06-25 14:59 94cool 阅读(754) 评论(0) 推荐(0) 编辑
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/... 阅读全文
posted @ 2009-06-25 14:46 94cool 阅读(181) 评论(0) 推荐(0) 编辑
摘要:判断非文本文件格式:public static bool IsAllowedExtension(FileUpload hifile) { Stream fs = hifile.PostedFile.InputStream; BinaryReader r = new BinaryReader(fs); string fileclass = ""; byte buffer; try { buffer ... 阅读全文
posted @ 2009-06-22 17:36 94cool 阅读(249) 评论(0) 推荐(0) 编辑
摘要:".*"="application/octet-stream"".001"="application/x-001"".301"="application/x-301"".323"="text/h323"".906"="application/x-906"".907"="drawing/907"".a11"="application/x-a11"".acp"="audio/x-mei-aac"".a... 阅读全文
posted @ 2009-06-22 16:54 94cool 阅读(166) 评论(0) 推荐(0) 编辑
摘要:首先,真正的高级人才是不用找工作的,因为只有被工作找的份。但是,难免有些高级人才厌倦了旧的工作环境,或者遇到天花板,没有了发展空间,或者遇到新老板上任后排除异己来提拔自己的亲信等等,如果您真打算自己去找工作,那么至少需注意以下几点:1.网上求职尤其需注意那些一天到晚在网上打招聘广告的公司。这类公司通常分成两类:一类是垃圾公司,如一些别有用心的保险公司、中介公司等。这类公司以获取你的个人资源和个人信... 阅读全文
posted @ 2009-06-19 14:51 94cool 阅读(180) 评论(0) 推荐(0) 编辑
摘要:OWASP WebGoat + WebScarab一、OWASP WebScarab Projecta tool for performing all types of security testing on web applications and web services下载地址:OWASP Source Code Center at Sourceforge安装方法:Linux: java -... 阅读全文
posted @ 2009-06-19 14:26 94cool 阅读(885) 评论(0) 推荐(0) 编辑
摘要:期转化一为了达到不同的显示效果有时,我们需要对时间进行转化,默认格式为:2007-01-0314:33:34,要转化为其他格式,要用到DateTime.ToString的方法(String,IFormatProvider),如下所示:usingSystem;usingSystem.Globalization;Stringformat="D";DateTimedate=DataTime,Now;Re... 阅读全文
posted @ 2009-06-16 14:14 94cool 阅读(162) 评论(0) 推荐(0) 编辑
摘要:1、先在登录窗体定义:public bool islogin = false;2、Program.cs类中添加如下代码:FrmLogin Login = new FrmLogin(); Login.ShowDialog(); if (Login.islogin) { Application.Run(new FrmLock()); }这样一来,当你登录成功后,就关闭登录窗体进入主界面! 阅读全文
posted @ 2009-06-03 16:00 94cool 阅读(151) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 设置应用程序开机自动运行 /// </summary> /// <param name="fileName">应用程序的文件名</param> /// <param name="isAutoRun">是否自动运行,为false时,取消自动运行</param> /// <exceptio... 阅读全文
posted @ 2009-06-03 15:55 94cool 阅读(549) 评论(0) 推荐(0) 编辑
摘要:最小化到了系统拖盘处实现这个其实很简单,捕捉窗体关闭时的消息就可以了。代码如下:protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_CLOSE = 0xF060; if (m.Msg == WM_SYSCOMMAND && (int) m.WP... 阅读全文
posted @ 2009-06-03 15:53 94cool 阅读(312) 评论(0) 推荐(0) 编辑
摘要:public static void LogoWrite(string msg) { FileStream fs = null; StreamWriter sw = null; try { string FileName = string.Format(@"{1}\logo{0}.txt", DateTime.Now.ToString("yyyyMMddHH"), AppDomain.Curren... 阅读全文
posted @ 2009-06-03 15:20 94cool 编辑
摘要:1.男性每天骑车别超过1小时,否则易使生殖器长时间受压,影响健康。2.牙刷用15天后,细菌繁殖会影响牙腔健康。杀菌可用开水烫3分钟后,再晒干。3.无法戒烟者应尽量少抽烟,因每天少抽一支,患心脏病的危险会降低4倍。 阅读全文
posted @ 2009-06-03 13:56 94cool 阅读(142) 评论(0) 推荐(0) 编辑
摘要:DES(DirectShow Editing Services)是一套基于DiretShow核心技术框架的编程接口。它的出现简化了视频编缉任务,弥补了DirectShow对媒体文件非线性编辑支持的先天性不足。 DES的构架Timeline:组织各个媒体源、音视频效果、过渡效果等的信息集合,实际上代表了最终的视频剪辑作品。 XML Parser:将Timeline结构转化为XML格式文件进行保存,或... 阅读全文
posted @ 2009-06-01 10:58 94cool 阅读(642) 评论(0) 推荐(0) 编辑
摘要:public double GetProcessUsedMemory() { double usedMemory = 0; usedMemory = Process.GetCurrentProcess().WorkingSet64 / 1024.0 / 1024.0; return usedMemory; } 阅读全文
posted @ 2009-06-01 09:31 94cool 阅读(428) 评论(0) 推荐(0) 编辑
摘要:不用的数据尽量及时销毁,以收回内存占用。如果调用了COM组件、数据库等,那就及时关闭以避免资源泄漏。其实.net程序占用内存比较正常,如果确定没有泄漏的地方可以不用理会。这里有个治标不治本的方法,使用API来减少内存占用:[DllImport("kernel32",EntryPoint="SetProcessWorkingSetSize", ExactSpelling=true, CharSet=... 阅读全文
posted @ 2009-06-01 09:30 94cool 阅读(2077) 评论(0) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示