kevin's blog

  • 首页
  • 微语
    • win8系统.net3.5安装不了,代号0x800F0906

      首先需要有安装光盘或原始安装文件(目录中的sources\sxs)以管理员权限运行CMD

      执行“dism.exe /online /enable-feature /featurename:NetFX3 /Source:G:\sources\sxs” ,其中/Source: 是Win8安装目中的文件夹

      日期:25 Mar 2015

      xielong 0 115 0
    • xml编程笔记(节点的增删改)

      删除节点:

      $root = $xmldoc->getElementByTagName("班级")->item(0);

      $stus = $xmldoc->getElementByTagName("学生");

      $stu1 = $stus->item(2);

      $root->removeChild($stu1);

      $xmldoc->save("xxx.xml");

        通过已取得的节点向上取得父节点进行删除

        $stu1->parentNode->removeChild($stu1);

       

      更新节点:

      $xmldoc = new DOMDocment();

      $xmldoc->load("xxx.xml");

      $stus = $xmldoc->getElementByTagName("学生");

      $stu1 = $stus->item(0);

      $stu1_age = $stu1->getElementsByTagName("年龄")->item(0);

      $stu1_age->nodeValue += 10;

      $xmldoc->save("xxx.xml");

       

      查看取得的对象的类型

      $xml_node->nodyType;

       

      添加属性节点

      创建属性节点 setAttribute

      $stu_node->setAtrribute("性别","男");

       

      删除属性

      removeAttribute

      日期:22 Mar 2015

      xielong 0 205 0
    • 英文常错单词

      2015-3-14
          decision   
          actually
          organize
          railroad
          baked potato
          spray 喷射
          overnight
          fever
          worn
          enrollment
          board

      2015-3-16
          conference  会议
          literate    有读写能力的
          portion     部分
          engine      引擎
          insist      坚持
          brochure    小册子
          addicted    沉迷
          perceptive  敏感的
          etiquette   礼节

      2015-3-17
          assertive   过份自信
          appetite    胃口
          tennis court    网球场
          butcher     屠夫
          schedule    时间表
          the statue of liberty   自由女神像
          dinosaur    恐龙

      2015-3-18
          muscle  肌肉
          bother  打扰
          kidnap  绑架
          mileage 里程
          filled  供应
          fascinating 吸引人的,迷人的
          order   点
          breast stroke   蛙泳
          tie     平局
          contest 比赛
          wondering   觉得奇怪的

      2015-3-21
          horrible    很糟的
          balance     结存
          flight      班机
          modem       调制解调器
          throw       扔
          wait on     服务
          friendly    友好

      2015-3-22
          butter  黄油
          french fries  炸薯条
          brochure    小册子
          butterfly   蝶泳
          hold    占据
          hungry  饥饿
          handle  把手
          quarter 四分之一
          library 图书馆
          breath-taking 惊人的
          prescription 处方
          

       

      日期:19 Mar 2015

      xielong 0 235 0
    • 电脑VGA视频线的接法

      VGA公头与母头上有数字编号,了解每个针角的对应编号后,再进行焊接。

      电烙铁进行焊接时,先将电烙铁加热后,粘一些松香在头上,然后在电烙铁头上均匀的涂上一层焊锡,接着将要焊接的线放在结块的松香上,然后用电烙铁使松香粘到需要焊接的线上,注意因电焊铁上之前有涂上一层焊锡所以在电烙铁与松香、线接触的过程中,线的上面会粘上焊锡,这样可以使接下来将线与VGA头的针脚的焊接变得简单。

       

      VGA针角所对应的线的颜色如下:

      1.红粗线芯

      2.绿粗线芯

      3.蓝粗线芯

      4.空

      5.空

      6.红屏蔽

      7.绿屏蔽

      8.蓝屏蔽

      9.空

      10.黑细线

      11.棕细线

      12.白细线

      13.桔黄细线

      14.黄细线

      15.外屏蔽(就是最外面的一层网)

      日期:18 Mar 2015

      xielong 0 229 0
    • 阿华苹果ID的安全提示问题

      [该文章已设置加密,请点击标题输入密码访问]

      分类:心情日记      日期:13 Jan 2015

      xielong 0 2 0
    • ubuntu修改引导顺序

      装了 ubuntu 11.04 和 windows 7 ,默认是 ubuntu 先启动的。现在想改为windows7 默认启动。

      首先打开  /boot/grub/grub.cfg  文件

      vim /boot/grub/grub.cfg


        1 #
        2 # DO NOT EDIT THIS FILE
        3 #
        4 # It is automatically generated by grub-mkconfig using templates
        5 # from /etc/grub.d and settings from /etc/default/grub
        6 #
        7
        8 ### BEGIN /etc/grub.d/00_header ###
        9 if [ -s $prefix/grubenv ]; then
       10   set have_grubenv=true
       11   load_env
       12 fi
       13 set default="0"
       14 if [ "${prev_saved_entry}" ]; then
       15   set saved_entry="${prev_saved_entry}"
       16   save_env saved_entry
       17   set prev_saved_entry=
       18   save_env prev_saved_entry
       19   set boot_once=true
       20 下面省略.


      可以直接改这个文件,但这个文件是经常会自动更新的,不是最终解决办法。 看最前面的提示,这个文件是由   /etc/grub.d  ,     /etc/default/grub 这两个目录(文件)下的配置文件

      生成的。

      先看 grub.d 目录下面的文件,有没有注意到目录前面都有个数字序号,你猜对了这个就是用来生成最终启动项的顺序。

      gnolux@it-xulong:/etc/grub.d$ ls -l
      总计 60
      -rwxr-xr-x 1 root root 6831 2010-10-06 20:23 00_header
      -rwxr-xr-x 1 root root 6933 2011-10-29 19:16 02_os-prober
      -rwxr-xr-x 1 root root 1481 2010-10-06 20:05 05_debian_theme
      -rwxr-xr-x 1 root root 4757 2010-10-06 20:23 10_linux
      -rwxr-xr-x 1 root root 5028 2010-10-06 20:23 20_linux_xen
      -rwxr-xr-x 1 root root 1588 2010-09-25 01:14 20_memtest86+
      -rwxr-xr-x 1 root root 6933 2010-10-06 20:23 30_os-prober
      -rwxr-xr-x 1 root root  214 2010-10-06 20:23 40_custom
      -rwxr-xr-x 1 root root   95 2010-10-06 20:23 41_custom
      -rw-r--r-- 1 root root  483 2010-10-06 20:23 README

      默认 windows7 是在  30_os-prober  这个文件下配置的,我复制了一份命名为 02_os-prober  为样就能排在 其它启动项前面了。

      再使用  grub-mkconfig  或者  update-grub 来重新生成   /boot/grub/grub.cfg  就OK了。


      我这里以调启动顺序的方法实现,还可以修改  /etc/default/grub  里面的 default 的值,这个值是你的启动项

      所处的顺序位置,从0开始算的。比如默认ubuntu的启动项,则设为0。

      分类:linux      日期:15 Mar 2014

      xielong 0 176 0
    • coreldraw字体间距如何调整

      1、F10 拖文本右下角向右的箭头(字距),拖文本左下角向下的箭头(行距)
      2、用文字工具选中需要调整的文字,按CTRL+SHIFT+> (大于号)
      3、段落格式化中 间距设置具体数据调整

      分类:coreldraw      日期:14 Feb 2014

      xielong 0 179 0
    • apache开启gzip压缩

      1. httpd.conf中打开deflate_Module和headers_Module模块
      2. httpd.conf中添加:
      <IfModule deflate_module>
         SetOutputFilter DEFLATE
         # Don’t compress images and other 
         SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary 
         SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary 
         SetEnvIfNoCase Request_URI .(?:pdf|doc)$ no-gzip dont-vary 
         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css 
         AddOutputFilterByType DEFLATE application/x-javascript
      </IfModule>

      分类:apache      日期:09 Feb 2014

      xielong 0 177 0
    • 隐藏apache和php的版本

      隐藏 Apache 版本信息

      /etc/apache2/apache2.conf 或 /etc/httpd/conf/httpd.conf

      ServerTokens ProductOnly
      ServerSignature Off

      重启 apache
      现在 http 头里面只看到:
      Server: Apache

      隐藏 PHP 版本
      php.ini

      expose_php On
      改成
      expose_php Off

      重启apache后,php版本在http头中隐藏了。

      分类:PHP      日期:03 Feb 2014

      xielong 0 169 0
    • deepin linux 关闭特效与虚拟桌面

      终端输入ccsm

      分类:linux      日期:13 Jan 2014

      xielong 0 231 0
    1 2 3 4 5 6
    • 日历

    • 存档

      • 2018年12月(2)
      • 2018年9月(1)
      • 2018年8月(1)
      • 2018年4月(2)
      • 2018年1月(2)
      • 2017年11月(1)
      • 2016年7月(1)
      • 2016年6月(1)
      • 2016年2月(3)
      • 2016年1月(5)
      • 2015年11月(2)
      • 2015年8月(1)
      • 2015年5月(2)
      • 2015年4月(1)
      • 2015年3月(9)
      • 2015年1月(1)
      • 2014年3月(1)
      • 2014年2月(3)
      • 2014年1月(1)
      • 2013年12月(7)
      • 2013年11月(9)
    • 最新评论

    • 链接

kevin's blog