One element that I had to build recently was a auto-saver on a page editor.
As I thought this was a nifty little method in jQuery I built, I thought I’d share it.
This will take all fields in the form, wrap them up in an object and post them with an AJAX query to the url
By default browsers will add the date, page number and URL to any page printed from the Internet. For most (if not all) of the printables on this site, you probably don’t want text at the top and bottom of the page. Luckily it’s pretty easy to fix, just pick your browser and follow the
对于大多数web应用来说,数据库都是一个十分基础性的部分。如果你在使用PHP,那么你很可能也在使用MySQL—LAMP系列中举足轻重的一员。
对于很多新手们来说,使用PHP可以在短短几个小时之内轻松地写出具有特定功能的代码。但是,构建一个稳定可靠的数据库却需要花上一些时日和相关技能。下面列举了我曾经犯过的最严重的10个MySQL相关的错误(有些同样也反映在其他语言/数据库的使用上)。
1、使用MyISAM而不是InnoDB
MySQL有很多数据库引擎,但是你最可能碰到的就是MyISAM和InnoDB。
MySQL 默认使用的是MyISAM。但是,很多情况下这都是一个很糟糕的选择,… Read More
MySQL 是用于交互式网站开发的最为知名的开源数据库系统。如果你使用的 MySQL 数据库,你应当经常有规律地备份数据,以防数据丢失(译注:不管用什么类型的数据都得定期备份)。这里有10个自动或手动备份 MySQL 数据库的方法,应该有适合你的方法。
1. Backing Up Using MySQLDump
数据备份,可以使用 MySQL 自带的 MySQLDump 命令来完成。这篇文章给出了多种例子,包括把数据库备份成一个文件,备份到另外一个服务器,还有备份成一个gzip压缩文件。
2. MySQL Export: How to Backup Your MySQL Database?
录数据库,可以… Read More
1. jquery-cacheimage
A simple jQuery plugin for pre-caching images. The plugin can be used to eliminate flashes of unstyled content (FOUC) and improve perceived page load time. Callbacks for load, error and abort events are provided.
Source + Demo
2. jQuery Image Cache Plugin – Cache Images in Browser’s Local Storage
Features:
> Enough q… Read More
1. PlayOnLinux
Installing from the Ubuntu repository:
PlayOnLinux is available in the Software Center on Ubuntu versions from 12.04 and up.
However, if you want the latest version, you will need to add the PlayOnLinux repository.
Installing from the PlayOnLinux repository:
The following example is for Ubuntu 12.04 LTS
wget -q "http://deb… Read More