小不忍则乱大谋,当你委屈的时候,抱怨往往不是最好的选择,直面委屈,从中找到解决的办法,笑对挫折和委屈,你离成功就不远了。每个人都有失意的时候,都有被冤枉的时候。当你加班工作,换来的是领导对你的能力...
sublime text 安装插件管理器package console
从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将以下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。以下提供 ST3 和 ST2 的安装代码:Sublime Text 3:import urllib.reque...
Thinkphp 缓存问题(数据库字段缓存)
当我们上线产品的时候,我们需要关闭debug,同时上传的时候不需要上传Runtime 这个文件夹,因为这个里面缓存了很多数据,一旦我们关闭了debug,默认情况下它走的是缓存,所以当我们修改了数据库的字段,第一要做的...
图片滚动插件(jCarouselLite),通过margin来调整图片间隔
/** * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget. * @requires jQuery v1.2 or above * * http://gmarwaha.com/jquery/jcarousellite/ * * Copyright (c)...
有效解决float,导致DIV高度无法自适应的方法
本文和大家重点讨论一下DIV高度自适应的三种有效解决方法,它们分别是一是JS法、二是背景图填充法、三是“补丁大法”(比较变态)。 DIV高度自适应的三种有效解决方法 DIV+CSS设计俨然已成网页设计界的标准...
国外的上传图片工具,可以有自己的空间
Cpied form : http://cloudinary.com/blog/introducing_a_complete_and_modern_ui_widget_for_cloud_based_image_uploading#face_detection_based_cropped_thumbnail Many websites and mobile a...
Top 10 mistakes in handling website images and how to solve them
Images are a major part of any modern website. Images nowadays account to more than 60% of a website's total bandwidth. This is even more pronounced when dealing with cutting-edge web design. On ...
ftp问题:解决vsftpd的refusing to run with writable root inside chroot错误
升级vsftpd或者vsftpd-ext后,登录时可能会出现这样的错误: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () 这是由于下面的更新造成的: - Add stronger checks for the configurat...
httpd 两种工作类型prefork和worker工作模式
Apache is the most common and famous webserver. Everyone knows about apache and most of us also have hands on experience with apache. But few of us know that apcahe2 comes with 2 multi processing m...
百度BAE,让我爱又恨
提起百度的bae,有他很多的优点和创新之处,但是缺点也是很多的。下面唠叨唠叨我对他的爱和恨。 低廉的价格,速度的保证,在全国乃至国外都有访问速度的保证。svn和git的提交代码,为我们代码的回滚提供了方便...