2015年1月11日

tostring格式化输出

摘要: C 货币2.5.ToString("C")¥2.50 D 十进制数25.ToString("D5") 00025 E 科学型25000.ToString("E") 2.500000E+005 F 固定点25.ToString("F2") 25.00 G 常规2.5.ToString("G") 2.5... 阅读全文

posted @ 2015-01-11 14:25 万里驰骋 阅读(438) 评论(0) 推荐(0)

C#时间处理--DateTime和TimeSpan

摘要: DateTime dt = DateTime.Now;dt.ToString();//2005-11-5 13:21:25dt.ToFileTime().ToString();//127756416859912816dt.ToFileTimeUtc().ToString();//1277567048... 阅读全文

posted @ 2015-01-11 14:24 万里驰骋 阅读(5791) 评论(0) 推荐(1)

C#正则表达式语法规则详解

摘要: 正则表达式通常包含字母文本(Literaltext)和元字符(metacharacter) 字母文本指的是普通文本如"abcde"可匹配字符串中任何包含"abcde"的字符串。 元字符则更加灵活运用通用的表达式匹配所有符合此表达式规律的字符串。C#正则表达式语法一、 匹配单个字符 []——从中选择... 阅读全文

posted @ 2015-01-11 14:23 万里驰骋 阅读(2783) 评论(0) 推荐(0)

C#常用的正则表达式

摘要: using System.Text.RegularExpressions;英文Regex.IsMatch("字符串", @"^[a-zA-Z0-9_\u4e00-\u9fa5]+$")中文Regex.IsMatch("字符串", @"^\w+$")) IP Regex.IsMatch(ftpServ... 阅读全文

posted @ 2015-01-11 14:22 万里驰骋 阅读(202) 评论(0) 推荐(0)

C#字符串截取

摘要: string str="123abc456"; int i=3; 1 取字符串的前i个字符 str=str.Substring(0,i); // orstr=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符: str=str.Remove(0,i);// or s... 阅读全文

posted @ 2015-01-11 14:21 万里驰骋 阅读(342) 评论(0) 推荐(0)

FTP操作

摘要: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net; using System.Windows.Forms; using System.Globali... 阅读全文

posted @ 2015-01-11 14:20 万里驰骋 阅读(212) 评论(0) 推荐(0)

samba

摘要: /etc/samba/smb.conf不需要密码的共享[root@www ~]# cd /etc/samba[root@www samba]# cp smb.conf smb.conf.raw[root@www samba]# vim smb.conf# 1.设定服务器整体环境参数[global]#... 阅读全文

posted @ 2015-01-11 11:57 万里驰骋 阅读(193) 评论(0) 推荐(0)

vsftp快速配置

摘要: /etc/vsftpd/vsftpd.confanonymous_enable=YESlocal_enable=YESwrite_enable=YESlocal_umask=022dirmessage_enable=YESxferlog_enable=YESconnect_from_port_20=... 阅读全文

posted @ 2015-01-11 11:50 万里驰骋 阅读(145) 评论(0) 推荐(0)

grub丢失的修复

摘要: 使用安装光盘进入rescure模式,经过配置后进入一个bashbash# grubgrub> root (hd0,6)grub> setup (hd0)重启即可 阅读全文

posted @ 2015-01-11 11:49 万里驰骋 阅读(255) 评论(0) 推荐(0)

grub2

摘要: 手工启动 set root(hd0,msdos7)linux /boot/vmlinuz-3.9.8-300.fc19.i686.PAE root=/dev/sda7initrd /boot/initramfs-3.9.8-300.fc19.i686.PAE.imgboot重建grub.cfggru... 阅读全文

posted @ 2015-01-11 11:48 万里驰骋 阅读(167) 评论(0) 推荐(0)

yum

摘要: redhat下载: https://blog.csdn.net/baijian_8d/article/details/95771904 几个教育网和国内的fc镜像:http://mirrors.163.com/ 网易163http://mirror.vmmatrix.net/ CDN Auto Se 阅读全文

posted @ 2015-01-11 11:45 万里驰骋 阅读(165) 评论(0) 推荐(0)

重装linux后

摘要: root帐号解禁vi /etc/pam.d/gdmvi /etc/pam.d/gdm-passwd两个装机必备软件源http://download1.rpmfusion.org/nonfree/fedora/http://download1.rpmfusion.org/free/fedora/htt... 阅读全文

posted @ 2015-01-11 11:43 万里驰骋 阅读(583) 评论(0) 推荐(0)

导航