上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 1、题目1取出password中shell出现的次数解析:好,让取出password中shell出现的次数,笔者用的是ubuntu,/etc/passwd就是所谓的password文件,那咱们先看看/etc/passwd中文件的格式吧 1 root:x:0:0:root:/root:/bin/bash 2 daemon:x:1:1:daemon:/usr/sbin:/bin/sh 3 bin:x:2:2:bin:/bin:/bin/sh 4 sys:x:3:3:sys:/dev:/bin/sh 5 sync:x:4:65534:sync:/bin:/bin/sync 6 games:... 阅读全文
posted @ 2012-06-07 23:24 爱喝可乐 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 返回一个螺旋数数组 static public int[,] SpiralNumSort(int num) { int temp = num % 2 > 0 ? (num / 2 + 1) : (num / 2); int[,] arynum = new int[num, num]; int number = 0; for (int q = 0; q < temp; q++) { for (int i = q; i < num - q; i... 阅读全文
posted @ 2012-05-30 18:12 爱喝可乐 阅读(374) 评论(0) 推荐(0) 编辑
摘要: static public int[,] NineNumSort(int num) { int[,] arynum = new int[num, num]; int max = num - 1; int x = 0; int y = 0; arynum[x, num / 2] = 1; y = num / 2; for (int i = 2; i <= num * num; i++) { ... 阅读全文
posted @ 2012-05-30 18:10 爱喝可乐 阅读(2483) 评论(0) 推荐(0) 编辑
摘要: Apche下载地点:http://www.apache/orgOr http://www.51cto.com/html/2005/1021/8911.htmPhp 下载地点:http://www.php.netMysql下载地点:http://www.mysql.com花两天时间,解决了Fatal error: Call to undefined function mysql_connect()这个问题以及Error trying access httpd.conf file.You will need to manually configure the这个问题,详细说说吧!1、(1)出现Fa 阅读全文
posted @ 2012-05-18 10:52 爱喝可乐 阅读(1764) 评论(0) 推荐(0) 编辑
摘要: ish.c#include<linux/init.h>#include<linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){printk(KERN_ALERT "hello fish!\n");return 0;}static void hello_exit(void){printk(KERN_ALERT "hello fish exit!\n");}module_init(hello_init);module_ex 阅读全文
posted @ 2012-05-18 10:48 爱喝可乐 阅读(254) 评论(0) 推荐(0) 编辑
摘要: wpf的资源是很有意思的东西,仅次于binding和依赖属性之类。资源分为几种,其一是自定义的,也就是说写在资源字典中的,比如,我新建了一个资源字典1、逻辑资源<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries > <R 阅读全文
posted @ 2012-05-18 10:45 爱喝可乐 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 安装IIS的时候总会有狠多的问题,重装的问题更多,大多数在重装的时候都会出现安装程序无法复制文件 convlog.exe。下面就这类问题解决办法做解决。。。 命令行下输入esentutl /p C:\Windows\security\database\secedit.sdb 然后再重装就可以了。 具体执行过程如下: C:\Documents and Settings\Administrator>esentutl /p %windir%/security/database/s ecedit.sdb Microsoft(R) Windows(R) Database Utilities Ver 阅读全文
posted @ 2012-05-18 10:45 爱喝可乐 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: wpf XamlReader.Load方法允许将一个Xaml解析,也就是说如果你用这个方法可以调用另外一个Xaml的内容。随便建一个wpf程序,新建一个wpf窗体,叫做fish.Xaml,在window1窗体中,window_load事件中,写入以下代码: Window window = null;//using 是一个C#释放内存的范围定义,简单说一下,自己goog一下 using (FileStream fs = new FileStream(@"C:\cx\fishdemo\fishdemo\fish.xaml", FileMode.Open, FileAccess. 阅读全文
posted @ 2012-05-18 10:44 爱喝可乐 阅读(3557) 评论(0) 推荐(0) 编辑
摘要: 百度或者谷歌一下,3d,看吧,介绍ModelVisual3D,介绍GeometryModel3D,介绍Model3DGroup,都简单的介绍了一 下,但是,这些东西如果我想知道,我直接去msdn不就行了,齐而且全,我还去百度谷歌什么,我只是想知道如何和在viewport3d中显示一个图片而 已,可怜的中文资料! 好了,如果是高手,就甭看了,这只是一个简单介绍如果用3d的小例子,如果是跟我一样想学3d,但是不知道如何入门的 菜鸟,我只能说,咱们都是同志 Xaml设计中: <Viewport3D x:Name="_view"> </Viewport3D> 阅读全文
posted @ 2012-05-18 10:43 爱喝可乐 阅读(2286) 评论(0) 推荐(0) 编辑
摘要: ICommand 接口是常用接口,在wpf中,经常会为一个button或者一个link绑定一个command public interface ICommand { // 摘要: // 当出现影响是否应执行该命令的更改时发生。 event EventHandler CanExecuteChanged; // 摘要: // 定义用于确定此命令是否可以在其当前状态下执行的方法。 // // 参数: // parameter: // 此命令使用的数据。如果此命令不需要传递数据,则该对象可以设置为 null。 // // 返回结果: // 如果可以执行此命令,则为 true;否则为 false。 bo 阅读全文
posted @ 2012-05-17 11:17 爱喝可乐 阅读(1563) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页