摘要: #juanjuan是一个文件[root@localhost c_test]# cat juanjuan1, 4, bffd97d02, 4, bffd97cc3, 4, bffd97c84, 4, 4#-F :表示以逗号分隔;#$1:表示第一列#将结果保存到11文件中[root@localhost c_test]# cat juanjuan| awk -F ',' '{print ""$1 ""}' >11[root@localhost c_test]# cat 111234[root@localhost c_te. 阅读全文
posted @ 2013-07-04 02:14 石 磊 阅读(362) 评论(0) 推荐(0) 编辑
摘要: WpfApplication1.DXSL.BLL。 ReportTimeEventArgs TimeButton namespace WpfApplication1.DXSL.BLL{ using System.Windows.Controls; using System.Windows.Input; using System.Windows; #region ReportTimeEventArgs public class ReportTimeEventArgs : RoutedEventArgs { public ReportTimeEv... 阅读全文
posted @ 2013-03-28 11:13 石 磊 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 学习IValueConverter的使用StatuToNullableBoolConverter public class StatuToNullableBoolConverter : IValueConverter { /// <summary> /// 将Statu转换为bool? /// </summary> public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo cultur... 阅读全文
posted @ 2013-03-14 14:56 石 磊 阅读(6682) 评论(0) 推荐(0) 编辑
摘要: View Code XmlNode node = this.doc.SelectSingleNode(string.Format("//DXSL//Configuration[@name='{0}']", MailSettings)); XmlNode node2 = node.SelectSingleNode("Server") if (node2 != node) { Server = node2.InnerText; } XmlNodeList list = node.SelectNodes... 阅读全文
posted @ 2013-02-21 12:28 石 磊 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 为gridView添加toolTip,toolTipController1_GetActiveObjectInfo事件 private void toolTipController1_GetActiveObjectInfo(object sender, DevExpress.Utils.ToolTipControllerGetActiveObjectInfoEventArgs e) { GridControl gc = e.SelectedControl as GridControl; if (gc == null) return;... 阅读全文
posted @ 2013-01-30 14:45 石 磊 阅读(1741) 评论(0) 推荐(0) 编辑
摘要: 添加注释和取消的区别,F5查看效果,执行时间对比强制执行索引范例SELECT COUNT(1) FROM (select * from vav_stbms_tb_act_source_2012 where cstart_time >= to_date('2011/11/1 02:00:00', 'yyyy/mm/dd hh24:MI:ss') and cstart_time < to_date('2011/11/2 02:00:00', 'yyyy/mm/dd hh24:MI:ss'... 阅读全文
posted @ 2013-01-11 14:38 石 磊 阅读(776) 评论(0) 推荐(0) 编辑
摘要: View Code 1024 groupadd mysql #建立mysql组 1025 useradd -g mysql mysql #创建用户并分组 1026 tar xzvf mysql-5.1.62.tar.gz #解压gz文件 1030 cd mysql-5.1.62 #进入加压后的文件目录 1033 ./configure --prefix=/usr/local/mysql #设定安装目录 1034 make #编译 1035 make install #安装 1037 cp support-file... 阅读全文
posted @ 2012-11-06 14:14 石 磊 阅读(287) 评论(0) 推荐(0) 编辑
摘要: View Code 用户名:root密码:*******1、进入配置文件目录:cd /etc/sysconfig/network-scripts/2、vi ifcfg-eth0在文件中将配置信息改为如下信息即可;DEVICE=eth0BOOTPROTO=staticBROADCAST=192.168.1.255HWADDR=00:0c:29:ca:92:8eIPADDR=192.168.1.67NETMASK=255.255.255.0NETWORK=192.168.1.0ONBOOT=yesTYPE=Ethernet3、保存退出(即:点击ESC,后输入:,输入wq)4、重新启动网卡eth0( 阅读全文
posted @ 2012-11-06 11:42 石 磊 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 函数库ctype.h分类函数,所在函数库为ctype.h int isalpha(int ch) 若ch是字母('A'-'Z','a'-'z')返回非0值,否则返回0 int isalnum(int ch) 若ch是字母('A'-'Z','a'-'z')或数字('0'-'9') 返回非0值,否则返回0 int isascii(int ch) 若ch是字符(ASCII码中的0-127)返回非0值,否则返回0 int iscntrl(int 阅读全文
posted @ 2012-11-05 01:07 石 磊 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 本文详细地介绍如何Linux系统的硬件驱动程序的编写原理,指出哪些内核例程将会被调用、如何初始化驱动程序及如何分配内存等等。大家一定对Linux操作系统有所了解了,在此本人也不再赘述了。好吧,下面简单地介绍一下设备驱动程序。顾名思义,驱动程序是用来控制计算机外围设备的,Linux系统将所有的外围设备都高度地抽象成一些字节的序列,并且以文件的形式来表示这些设备。我们可以来看一下Linux的I/O子系统(图1)。 图1 Linux的I/O子系统 从图上我们可以看出,内核紧紧地包围在硬件周围,内核是一些软件包的组合,它们可以直接访问系统的硬件,包括处理器、内存和I/O设备。而用户进程则通过... 阅读全文
posted @ 2012-11-05 01:05 石 磊 阅读(1868) 评论(0) 推荐(0) 编辑