pyzheng
pyzheng · 共 1633 篇文章
网站布局工具的对比:Flexbox VS Susy
http://www.oschina.net/translate/website-layout-tools-compared-flexbox-vs-susy
2016-02-04 09:53 · 前台&美工 · 评论(0)
在linux操作系统下注销、关机、重启的简单命令
一、注销的命令——Logout 是登陆的相对操作,登陆系统后,若要离开系统,用户只要直接下达logout命令即可: [root@laolinux root]# logout 二、关机或重新启动的命令——shutdown shutdown命令可以关闭所有程序,重新启动或关机。 参数说明如下: 立即关机:-h 参数让系统立即关机。范例如下: [root@laolinux root]# shutdown –h now ——》 要求系统立即关机 指定关机时间:time参数可指定关机的时间; 或设置多久时间后运行shutdown命令; 例如: [root@laolinux root]# shutdow…
2016-01-31 15:28 · OS&Docker · 评论(0)
Linux如何查找大文件或目录总结
http://my.oschina.net/u/1034537/blog/611045 如何查找大文件 要搜索当前目录下,超过800M大小的文件 find . -type f -size +800M 对文件的信息(例如,文件大小、文件属性)一无所知,那么能否更详细显示一些文件属性或信息呢,当然可以,如下所示 find . -type f -size +800M -print0 | xargs -0 ls -l 当我们只需要查找超过800M大小文件,并显示查找出来文件的具体大小,可以使用下面命令 find . -type f -size +800M -print0 | xargs -0 du …
2016-01-28 22:44 · OS&Docker · 评论(0)
禅知使用经验
[color=red][b]1. 增加自定义区块,包含插件。[/b][/color] 使用 [url]http://www.enova-tech.net/jmycarousel[/url] 这个画廊, 去官方下载源码。然后上传到js/jMyCarousel/文件夹。 增加一个html区块,如果使用php,那么请使用php的获得地址的一些变量: [code="php"]'; print_r($_SERVER); //查看所有变量 echo ''; ?>[/code] 定义html [code="html"] [/code] 定义js [code="js"]$(function() { $('.…
jQuery图文tab手风琴切换焦点图特效
http://www.phplearn.cn/dshare/info_1898.html 在线例子: http://www.phplearn.cn/demo_1898.html
2016-01-19 09:30 · 前台&美工 · 评论(0)
Linux系统下如何创建任意大小的测试文件
http://my.oschina.net/u/1038053/blog/603665 在linux下面产生任意大小的测试文件其实很简单,命令: dd if=/dev/zero of=/tmp/test.iso bs=1K count=100000 上面这个命令在/tmp目录产生了一个100M的测试文件test.iso。 改变count大小,就可以调整产生的文件大小了。
2016-01-17 22:20 · 评论(0)
spring的拦截器
[url]http://my.oschina.net/wnjustdoit/blog/603566[/url] 方式: 1、实现接口:org.springframework.web.servlet.HandlerInterceptor 2、继承抽象类:org.springframework.web.servlet.handler.HandlerInterceptorAdapter spring配置文件: [code="xml"] [/code] 全局拦截器: [code="xml"] [/code] 或 [code="xml"] [/code] 拦截器类: [code="java"]pack…
2016-01-16 15:19 · Spring · 评论(0)
借助phpmailer使用gmail和163邮箱发送邮件
http://www.solagirl.net/phpmailer_with_gmail_163.html 本地没有发邮件的服务器,借助现成的SMTP服务器发送邮件是个不错的选择,这里使用到的工具是phpmailer ( Version 5.2.0),SMTP服务器就选gmail和163。 使用gmail发送的脚本 include("class.phpmailer.php"); include("class.smtp.php"); //获取一个外部文件的内容 $mail = new PHPMailer(); $body = file_get_contents('contents.html')…
2016-01-16 14:03 · PHP · 评论(0)
shrio自定义realm,权限拦截
[url]http://my.oschina.net/sheldon1/blog/603351[/url] 一,自定义realm,重写认证,授权,验证权限三个方法 [code="java"]public class UserRealm extends AuthorizingRealm { @Autowired private SysUserService userService; @Autowired private UserAuthService userAuthService; private Logger logger = LoggerFactory.getLogger(this.ge…
常见移动设备的 CSS3 Media Query 整理
http://my.oschina.net/jsan/blog/603377 /** * iPhone 4/4s landscape & portrait */@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3) { } /** * iPhone 4/4s portrait */@media only screen and (min-device-width…
2016-01-15 21:33 · 前台&美工 · 评论(0)
第三方登录之QQ登录
第三方登录之QQ登录(一)——QQ互联开放平台新建应用 http://blog.csdn.net/xiaoxian8023/article/details/38112107 第三方登录之QQ登录(二)——OAuth2.0处理流程介绍(以QQ登录为例) http://blog.csdn.net/xiaoxian8023/article/details/38114921
SpringMVC 的 Controller 返回各种视图的处理方式
http://my.oschina.net/u/178116/blog/602577
2016-01-14 22:23 · Spring · 评论(0)
Linux 查看磁盘空间命令
df、du、fdisk:Linux磁盘管理三板斧的使用心得 http://os.51cto.com/art/201012/240726_all.htm 原文: http://os.51cto.com/art/201005/202467.htm Df命令是Linux查看磁盘空间系统以磁盘分区为单位查看文件系统,可以加上参数查看磁盘剩余空间信息,命令格式: df -hl Linux查看磁盘空间 显示格式为: 文件系统 容量 已用 可用 已用% 挂载点 Filesystem Size Used Avail Use% Mounted on /dev/hda2 45G 19G 24G 44% / /d…
2016-01-14 22:08 · OS&Docker · 评论(0)
Animate.css 纯CSS动画库
[url]http://my.oschina.net/yangyan/blog/601573[/url] github上的地址是: [url]https://daneden.github.io/animate.css/[/url] Animate.css Just-add-water CSS animation animate.css is a bunch of cool, fun, and cross-browser animations for you to use in your projects. Great for emphasis, home pages, sliders, an…
2016-01-12 21:59 · 前台&美工 · 评论(0)