原创 delete .svn folder

1. F3 find then delete2. Export with SVN client3 del.reg[code=""]Windows Re

原创 Php

<?php// IE - 200 OK// Chrome - text/plain, 200 OK// FF - application/rss+xml, 200 OKheader("Content-Type: application/r

原创 htaccess issue with .+ and .*

RewriteEngine OnRewriteRule ^(.+)$ /?path=http://domain.com.au/$1 [R=301,L]The codes above could redire

原创 apple android windows app meta tags

總結最近用的app meta代碼<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge, ch

原创 Code Snippet - ctrl + i in javascript

var ctrlKey = false; $(document).bind('keydown',function(event){ if(event.keyCode == 17) { ctrlKey = true; }

原创 magnolia cms tips

backend[list][*]website - navigations[*]data/types - category[*]data/jcr browser - items[*]data/config/

原创 htaccess - file not existing then rewrite rules

RewriteEngine On#RewriteBase /RewriteCond %{REQUEST_FILENAME} !-s#RewriteRule ^.*\.jpg$ noimage/default.jpg [L]RewriteR

原创 risk of javascript undefined variable

var objFiles = [{"name": "FileA"},{"name": "FileB"}];var strHtml; //undefined$.each(objFiles, function(i, v){ strHtml +

原创 ant script for css/js compression

<?xml version="1.0" encoding="UTF-8"?><project name="yakbootstrap" default="yakbootstrap" basedir="."> <property nam

原创 upload and json

jquery submit serialized formhttp://www.wangyexx.com/jquery/jc/1009.html1. $("#form1").serialize(); //

原创 ubuntu commands

install graphic driverctrl+alt+F1sudo service lightdm stopsudo chmod +x /nvidia.runsudo sh /nvidia.runs

原创 chrome console.log bug

http://code.google.com/p/chromium/issues/detail?id=50316What steps will reproduce the problem?Execute:v

原创 superfish backup

/* jquery.event.special.hover v1.0 Three Dub Media */(function($){$.fn._hover=$.fn.hover;$.fn.hover=function(fn1,fn2,fn

原创 reset mysql/phpmyadmin passport

sudo stop mysqlsudo /usr/bin/mysqld_safe --skip-grant-tables&mysqluse mysqlupdate user set password=password('new passw

原创 php遍歷文件夾

<?php class Dir { public $dirName; public function scan() { return $this->getFiles($this->dirName); } private fun