01 2016 档案
摘要:To see all the files the package installed onto your system, do this:dpkg-query -L To see the files a .deb file will installdpkg-deb -c To see the fil...
阅读全文
摘要:实测ubuntu 14.04 好使 1) 编辑 /etc/systemd/logind.conf 2) 找到 HandleLidSwitch 设置,去掉行头注释#,然后改成下面这样 3) 重启systemd-logind 增加另外一种方法: 2nd Option: Run dconf-editor
阅读全文
摘要:1) iwconfig 确定一下接口的名称2) 编辑/etc/network/interfaces 加入下面的代码auto wlan0iface wlan0 inet dhcpwpa-ssid wpa-psk 3)执行下面的命令sudo ifup -v wlan0http://askubuntu.c...
阅读全文
摘要:刚安装ubuntu 14.4 竟然出现这么尴尬的事,ubuntu 行不行?幸好还是能从u盘启动后,转到硬盘。然后在网上找到了解决方法。http://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-a...
阅读全文
摘要:除了安装的包,比如 GUI, LAMP 上有差别之外,所用的内核也稍有不一样。不过desktop可以通过安装sudo apt-get install linux-image-server之后,编辑grubs.cfg使用这个内核, 切换到server.参考连接:http://stackoverflow...
阅读全文
摘要:所用脚本: "the value a","keyb" => "the value b","keyc" => "the value c","keyd" => "the value c","keye" => "the value c");for ($i=0 ; $iphp .\test.php1.794...
阅读全文
摘要:用到了 pidof 命令kill $(pidof h3.Irrx)
阅读全文
摘要:本来在控制台调试的好好的程序,一通过crond运行, 就执行不了。一般需要注意:1) 环境变量 当前目录 会变成用户的Home2) /var/log/messages 可以看出 crond 调度了没有3) crontab -e , 把下面的重定向加上, 能更好的去调查出了什么事45 14 * * *...
阅读全文
摘要:<?php$externalContent = file_get_contents('http://checkip.dyndns.com/');preg_match('/Current IP Address: \[?([:.0-9a-fA-F]+)\]?/', $externalContent, $...
阅读全文
摘要:php 自带的邮件发送函数已经弱到不能用了。 PHPMailer非常的强大。绝对是php里必须使用的程序。下载地址:https://github.com/Synchro/PHPMailer只要这个三个文件class.phpmailer.phpclass.smtp.phpPHPMailerAutolo...
阅读全文
摘要:1) 下载gd的各种依赖包。 但是不要下载gd本身,因为这是包含在php里的。 探索的时候也下载了libvpxfreetype,可惜最后的编译没过,就没有用上2)编译各种(编译前记得把各种环境变量设上,这里我就直接用以前写好的cross-env.sh)-- libvpxxz -d libvpx-v...
阅读全文
摘要:安装了【电脑公司】的Win7_SP1之后, IE的主页被绑架。症状是先转到 IE959.com,然后自动跳转到 www.2345.com网上当然有很多例子了,可是都没有效果。1. 更改IE设置没有效果2. 更改注册表,没有效果 a. HKLM\Microsoft\Internet Explore...
阅读全文