CentOS install Virtualbox

在CentOS 6.5 x64系统上装了个Virtualbox,这里记录下整个安装过程。 1、去官网下载Virtualbox及其扩展包,同时还要下载dkms,具体如下: Virtualbox:https://www.virtualbox.org/wiki/Downloads dkms:http://linux.dell.com/dkms/ [cason@casonchan Downloads]$ lltotal 84424 -rw-rw-r–. 1 cason cason 108241 Feb 2215:03 dkms-–. 1 cason… Continue reading »

conky peizi

background yescpu_avg_samples 2net_avg_samples 2out_to_console nouse_xft yesxftfont monospace:size=10own_window_transparent noxftalpha 0.8update_interval 1own_window yesown_window_transparent yesown_window_hints undecorated,below,skip_taskbarown_window_type overridedouble_buffer yesminimum_size 260 5maximum_width 280draw_shades yesdraw_outline nodraw_borders… Continue reading »

How to use Compiz in Xubuntu (w/ Xfce) 14.10, 14.04 or 12.04

1. Install Compiz, the main Compiz plugins, CompizConfig Settings Manager and Metacity: sudo apt-get install compiz compiz-plugins compizconfig-settings-manager metacity 2…. Continue reading »


长度像素: 宽度像素: 屏幕尺寸: : PPI计算公式 : PPI=√(X2+Y2)/ Z   PPI 即英文Pixels per inch的缩写,每英寸所拥有的像素数目的计算表达。公式表达为 PPI=√(X2+Y2)/ Z   (X:长度像素数;Y:宽度像素数;Z:屏幕大小)如拿最流行的iphone4来说,按照如上公式得到的ppi=330

php websocket demo 下载

  php websocket 在线 demo      php websocket 下载

PHP DOMDocument::loadHTML() input error

Warning: DOMDocument::loadHTML(): input conversion failed due to input error, bytes 0xAD 0xE6 0×88 0x8F in C:\Userstest.img.dom.php on line 7 错误解决方案… Continue reading »

linux 创建受限制的用户

#!/bin/bash username=”xianziuser” cp -a /bin/bash /bin/rbash useradd -c “A Restricted User” -g users -d /home/$username -s /bin/rbasusername rm -rf /home/$username;… Continue reading »


服务器(server),数据库(database),数据表(table)和连接(connection) 字符集. 修改my.cnf # vim /etc/my.cnf [client] default-character-set=utf8 [mysqld] character-set-server=utf8 [mysql] default-character-set=utf8

windowns 7 bcdedit 引导 linux

win7直接引导 linux grub 1. dd命令复制 MBR /* * linux dd 命令 */ dd if=/dev/sda1 of=linux.bin bs=512 count=1 ##/// sda1 linux… Continue reading »

php nginx 动态产生缩略图

<?php $replace_from = array( ‘ ‘, ‘(‘, ‘)’ ); $replace_out = array( ‘\ ‘, ‘\(‘, ‘\)’ ); $str = str_replace(… Continue reading »