Author: Gideon

Dailymotion 视频下载神器,喜欢太阳的后裔的人有福了!

有很多网站支持在线下载,例如:  telechargerunevideo ,savevideo 等等,但是今天要介绍是超速浏览器插件(支持火狐和chrome):savefrom.net 插件下载地址:http://en.savefrom.net/user.php?vid=308 效果如顶图 ↑ 。   更多参考: Linux 下载youtube视频 How to save YouTube videos on Linux 下载YouTube视频字幕的方法 Linux中7个用来浏览网页和下载文件的命令 Javascript 创建书签小工具 (bilibili视频下载为例)   本文: Dailymotion 视频下载神器,喜欢太阳… Read More

jquery mobile : 外链接失效 a href not working

1. 根据文档 http://view.jquerymobile.com/master/demos/,可以在 <a> 标签里面添加属性rel="external" 或者 data-ajax="false" 2. 如果无法直接添加,也可以使用js效果: $(document).ready(function(){ $("a").each(function(){ $(this).attr("rel","external"); }); }); 当然,如果你的代码中使用了一些特别属性,如下: <a href="#popupBasic" data-rel="popup">Open Popup</a> <… Read More

你要了解的11款面向Linux系统的一流备份实用工具

个人计算机或者服务器上的备份对于防止数据丢失很重要。系统管理员每天需要处理大量的企业级数据,甚至个人计算机上的数据,所以要深入了解不同的备份工具。 经常备份计算机上的数据是个好的做法,它可以手动完成,也可以设置成自动执行。许多备份工具拥有不同的功能特性,让用户可以配置备份类型、备份时间、备份对象、将备份活动记入日志及执行更多操作。 我们在本文中将介绍11款一流的备份工具,供你在Linux服务器或系统上使用。   1. Rsync 这是一款在Linux用户当中颇受欢迎的命令行备份工具,尤其受到系统管理员的欢迎。它拥有丰富的功能,包括增量备份、更新整个目录树和文件系统、本地备份及远程备份,以及保留文… Read More

Google 搜索技巧

这里记录一些非常有用的搜索技巧,熟练运用后可以有效提升自己的效率。 操作符 + 强制搜索 由于Google会忽略和过滤一些常用词(称为stop words / common words),如and、how等。使用+可以让搜索引擎强制包括这些词。使用+还可以强制过滤关键词变体形式(不让搜索结果出现关键词的其它形式),如 单复数、动词时态、ing形式等等。 - 逻辑非 用于过滤-号后面的关键词。如:MP3 -MP4,表示只搜索MP3而不要MP4的搜索结果。 -号后面没有空格。 ~ 同义词 关键词前加波浪线。如:~table 。 * 通配符 如:Google was founded in * 。 ** 指数 作用同 ^ ,如:2**10 。 " " 引号 用引号精确搜索… Read More

MySQL: 获取表结构 Get a MySQL table structure with DESCRIBE

Example table The example table used in this post was created with the following SQL: CREATE TABLE `products` ( `product_id` int(10) unsigned NOT NULL auto_increment, `url` varchar(100) NOT NULL, `name` varchar(50) NOT NULL, `description` varchar(255) NOT NULL, `price` decimal(10,2) NOT NULL, `visible` tinyint(1) unsigned NOT NULL default '1', PR… Read More

Magento: 代替flash上传 How to disable Flash uploader in Magento (product images and WYSIWYG)

1. 替换产品页flash上传按钮 – 使用 Dull_Uploader How to disable Flash uploader in Magento 1.4.x – 1.9.x So what to do if one day you will discover that you simply cannot upload any images in your Magento administration panel due to Flash problem? Don’t panic, just follow these simple steps: 1. Find the Dull_Uploader (No Flash Image Uploader) module…

jQuery Zoom 图片聚焦或者点击放大A plugin to enlarge images on touch, click, or mouseover

下载: zoom-master 项目地址: https://github.com/jackmoore/zoom Compatible with: jQuery 1.7+ in Chrome, Firefox, Safari, Opera, Internet Explorer 7+. Install via NPM npm install jquery-zoom Instructions Zoom appends html inside the element it is assigned to, so that element has to be able to accept html, like <a>, <span>, <li>, <div… Read More

Bootstrap 3 : 侧边菜单插件 Sliding Side Menu/Panel with jQuery and Bootstrap – BootSideMenu

A simple lightweight javascript plugin used to create side menus/panels that smoothly slide out from the edge of your screen when toggled, built with jQuery and Bootstrap 3. How to use it: 1. Load the Bootstrap’s stylesheet and BootSideMenu.css in the head section of the web page. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/boo… Read More

同一表单内设置两个或两个以上的提交按钮 Two submit buttons in one form

给相同 name就可以了, 类似radio的和checkbox的用法: You can give each input a different value and keep the same name: <input type="submit" name="action" value="Submit" /> <input type="submit" name="action" value="Update" /> <input type="submit" name="action" value="Delete" /> php接收: Then in the code check to see which was triggered: if ($_… Read More