摘要: 其实网上有很多教程的,不过他们基本只是提供如下代码: /***/$('.public-leftimg').each(function(){varx=100;//填入目标图片宽度vary=100;//填入目标图片高度varw=$(this).width();varh=$(this).height();//获取图片宽度、高度if(w>x){//图片宽度大于目标宽度时varw_original=w,h_original=h;h=h*(x/w);//根据目标宽度按比例算出高度w=x;//宽度等于预定宽度if(h<y){//如果按比例缩小后的高度小于预定高度时w=w_orig 阅读全文
posted @ 2012-11-20 12:43 DavidHHuan 阅读(1551) 评论(0) 推荐(0) 编辑
摘要: At first, you have to install the xdebug, for the details, you can check anthoer article:http://www.cnblogs.com/davidhhuan/archive/2011/09/28/2194851.htmlinstall pythoninstallgraphvizsudo apt-get install graphviz2. download the webgrindhttps://github.com/jokkedk/webgrinduncompress it, and locate it 阅读全文
posted @ 2012-11-20 11:46 DavidHHuan 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 搭建的FTP服务器vsftpd,用户上传的文件用给其它用户查看,这个要怎样修改上传的文件的默认权限呢?打开配置文件sudo vim /etc/vsftpd/vsftpd.conf修改(通常都是去掉注释)local_umask=022这样就可以了Have fun with CentOS! 阅读全文
posted @ 2012-11-20 11:10 DavidHHuan 阅读(875) 评论(0) 推荐(0) 编辑