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计算公式 : 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 »

Mysql乱码

服务器(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 »

freebsd/pfsense 关闭显示器

获取 green_saver.ko cd /boot/modules fetch http://files.pfsense.org/jimp/ko-8.3/amd64/green_saver.ko 编辑 /cf/conf/config.xml <afterbootupshellcmd>/var/vidcontroll.sh</afterbootupshellcmd> </system> 编辑 /var/vidcontroll.sh #!/bin/sh kldload -v green_saver.ko; vidcontrol -t 30