在.NET
3.5中提供了一套全新的接口来实现对RSS和ATOM这两种数据文件的读写。非常方便。下面演示一下1.
首先要添加一个引用System.ServiceModel.Webusing System.ServiceModel.Syndication;using
System.Xml;2. 读取R...
分类:
Web程序 时间:
2014-04-30 04:51:29
阅读次数:
513
一、错误情况环境:win7+iis7.0DirectoryEntry配置IIS7出现如下错误或者是下面一段代码在IIS6.0下运转正常,但IIS7.0下运转会出错:System.DirectoryServices.DirectoryEntryiisServer;iisServer
=newSyste...
分类:
其他好文 时间:
2014-04-28 17:53:29
阅读次数:
464
http://www.jeasyuicn.com/css-background-image-stretching.htmlbackground-image:url(bg.png);
-moz-background-size: 100% 100%; -o-background-size: 100% 1...
分类:
Web程序 时间:
2014-04-28 13:42:47
阅读次数:
615
sudo update-grub运行结果:Generating grub configuration
file ...Warning: Setting GRUB_TIMEOUT to a non-zero value when
GRUB_HIDDEN_TIMEOUT is set is no lon...
分类:
其他好文 时间:
2014-04-28 13:01:32
阅读次数:
1053
内核态: CPU可以访问内存所有数据, 包括外围设备, 例如硬盘, 网卡.
CPU也可以将自己从一个程序切换到另一个程序用户态: 只能受限的访问内存, 且不允许访问外围设备. 占用CPU的能力被剥夺,
CPU资源可以被其他程序获取为什么要有用户态和内核态由于需要限制不同的程序之间的访问能力, 防止他...
分类:
其他好文 时间:
2014-04-28 12:32:05
阅读次数:
465
这个问题困扰了挺久,网上找了挺多方法 都太好使。分几种情况。1.如果查询结果
转换,那比较容易。var q = from c in db.Customers where c.Country == "UK" || c.Country ==
"USA" select new { ...
分类:
其他好文 时间:
2014-04-28 11:56:12
阅读次数:
620
1.输出图片,最直接的方式是Image img =
Toolkit.getDefaultToolkit().getImage("images/cheer1.jpg");
graphics.drawImage(img, 0, 0, 500, 500, null);注意:路径是相对于工程根目录的,不是....
分类:
编程语言 时间:
2014-04-28 11:54:08
阅读次数:
506
本人有一段代码关于"~"运算符 public class m{ public static
void main(String[] args){ int x=~5; System.out.println(x); ...
分类:
其他好文 时间:
2014-04-28 00:48:41
阅读次数:
326
using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using System.Text;u...
分类:
Windows程序 时间:
2014-04-27 23:51:43
阅读次数:
1188
【一些编程语录】1、If debugging is the process of
removing software bugs, then programming must be the process of putting them
in.– Edsger Dijkstra 如果调试程序是移除臭....
分类:
其他好文 时间:
2014-04-27 22:56:14
阅读次数:
543