自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(80)
  • 收藏
  • 关注

原创 apple android windows app meta tags

总结最近用的app meta代码[code="html"] [/code]根目录下放置apple-touch-icon.png (152x152)favicon.ico (32x32)favicon-192.png for chrome/androidfavic...

2015-03-19 12:32:50 169

原创 htaccess issue with .+ and .*

RewriteEngine OnRewriteRule ^(.+)$ /?path=http://domain.com.au/$1 [R=301,L]The codes above could redirecthttp://localhost/a/b/c.htm tohttp://localhost/?path=http://domain.com.au/a/b/c.htm...

2014-01-06 12:31:57 111

原创 magnolia cms tips

backend[list][*]website - navigations[*]data/types - category[*]data/jcr browser - items[*]data/config/modules - templates, paragraphs(sidebars), dialogs[*]...[/list]

2013-04-04 14:08:33 127

原创 Code Snippet - ctrl + i in javascript

[code="javascript"] var ctrlKey = false; $(document).bind('keydown',function(event){ if(event.keyCode == 17) { ctrlKey = true; } if (ctrlKey & event.keyCode == 73) { a...

2013-02-25 11:39:11 106

原创 risk of javascript undefined variable

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

2012-10-29 10:06:57 79

原创 ubuntu commands

install graphic driver[code="java"]ctrl+alt+F1sudo service lightdm stopsudo chmod +x /nvidia.runsudo sh /nvidia.runsudo reboot[/code]

2012-10-20 13:47:53 112

原创 reset mysql/phpmyadmin passport

[code="java"]sudo stop mysqlsudo /usr/bin/mysqld_safe --skip-grant-tables&mysqluse mysqlupdate user set password=password('new password') where user='root';exit;sudo start my...

2012-10-18 19:35:21 81

原创 chrome console.log bug

http://code.google.com/p/chromium/issues/detail?id=50316What steps will reproduce the problem?Execute:var arr = [0, 1, 2];for (var i=0; i

2012-10-17 13:10:48 122

原创 ant script for css/js compression

[code="ant"] Working... ...

2012-10-05 08:40:15 103

原创 upload and json

jquery submit serialized formhttp://www.wangyexx.com/jquery/jc/1009.html1. $("#form1").serialize(); // e.g. a=bob%3Dblog&b=1&c=1 autoencoding2. $("#form1").serializeArray(); return json, php: ...

2012-08-30 16:09:03 91

原创 superfish backup

[code="java"]/* jquery.event.special.hover v1.0 Three Dub Media */(function($){$.fn._hover=$.fn.hover;$.fn.hover=function(fn1,fn2,fn3){if(fn3)this.bind('hoverstart',fn1);if(fn2)this.bind('hovere...

2012-07-17 14:10:23 92

原创 htaccess - file not existing then rewrite rules

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

2012-05-18 11:40:22 86

原创 find prime numbers

[code="PHP"]

2012-05-11 10:45:44 120

原创 php sprintf

[code="php"]

2012-05-05 21:01:06 88

原创 php遍历文件夹

[code="php"][/code]

2012-04-30 14:45:43 82

Enable mysql logging in xampp

xampp\mysql\bin\my.inicopy and paste below codes under group [mysqld][code]#logging sqllog="D:/xampp/mysql/log.txt"#logging slow querylog-slow-queries="D:/xampp/mysql/logslowquery.txt"...

2012-04-24 14:23:32 109

原创 AUSPOST API DEMO

[code="php"][/code]results[code="javascript"]{"services":{"service":[{"code":"AUS_PARCEL_REGULAR","name":"Regular Parcel","price":"6.60","m

2012-04-23 15:41:03 242

joomla tips

RewriteRule ^privacy.html$ index.php?option=com_content&view=article&id=153 [L]NC: no case,就是说不区分大小写R:redirect,重定向F:forbidden,禁止访问L:last,这是最后一条规则,exit吧。...

2012-04-16 10:36:44 94

原创 jsp and jstl tips

${param.mgnlPreview}=

2012-04-13 10:59:14 91

原创 table-layout:fixed 解决chrome中不能设定表格固定宽度的问题

table-layout:fixed;(probably not use width:auto, should use width:100% instead.)add to table styleadd the style below to td for long unbreakable content like a url[code="html"]word...

2012-01-09 19:27:33 471

原创 Netbeans CI框架自定义类和方法属性的代码提示功能

加入类似代码到CI_Controller类中[code="php"]/** * @property Category_mdl $category_mdl */ protected $category_mdl;OR /** * @var Category_mdl */ public $category_mdl;...

2012-01-09 17:15:24 130

原创 301 permanently moved

[code="php"]

2012-01-08 10:12:09 441

原创 Php <<< operator

[code="php"] x x x x x x x x 0 Bringing Cutting-Edge Skills to Philippines Public...

2012-01-07 13:58:43 123

原创 css3 ::selection

SummaryThe ::-moz-selection (::selection) pseudo-element applies to the portion of a document that has been highlighted (e.g. selected with the mouse) by the user.Examples/* draw any selec...

2012-01-06 18:12:30 85

fix the jquery multiple hover animations

1. use hover or mouseenter + mouseleave2. use stop(true, true) to Stop the currently-running animation on the matched elements. (.stop( [clearQueue] [, jumpToEnd] ))[code="javascript"]$(do...

2011-12-26 17:46:47 49

fix the rssfeeds

1. used short tag - php_flag short_open_tag On2. - 3. define('PATH_SITE', dirname(__FILE__).'/'); -define('PATH_SITE', str_replace('\\','/',dirname(__FILE__)).'/');// use / in path for al...

2011-12-13 10:38:40 72

Joomla with rss modification

1. file location2. Built-in RSS Feeds could confict with the Moudule SimpleRSS3. Do not repeat alias for 2+ menu items.It can potentially create problems for Joomla in creating SEF URL. Create...

2011-12-10 10:07:11 110

Tips of coding a newsletter

1. write codes in one line to remove extra space around image[code="html"][/code]2. use absolute path for all images / links3. use inline css rather than others4. use tables rather...

2011-12-06 07:48:18 57

原创 fix arabic cross_site_rss with ajaxcrud

1. change the mysql table / fields to utf8_general_ci and add a line on preheader.php mysql_query("SET NAMES utf8"); apply utf-8 for all relative php/js files.2. add tinyMCE in php page.[c...

2011-12-02 11:52:06 183

原创 Addthis widges wia API

[code="html"] var addthis_share = { description: "Australian bla bla", title: "Beth and Dan", width: "144", height: "108", screenshot: "http://absolute/path/img.j.

2011-11-22 12:13:36 160

Joomla with blog modification

1. backendroot\administrator\components\com_content\admin.content.html.phpline 833[code="php"] &nbsp; &nbsp; [/code]...

2011-10-18 14:21:46 110

原创 Joomla! mailto: links getting screwed up

If you find your mailto: links are getting screwed up by some odd javascript, put {emailcloak=off} at the end of the article and it will turn off the email js. OR disable the plugin1. Login as J...

2011-10-06 09:12:32 307

原创 element.style.left returns NaN

Two ways to fix it.1. put the inline css style within the html element[code="java"]bla[/code][color=red]or[/color]2. use the function below[code="java"]function getStyle(el,sty...

2011-09-29 14:31:07 134

原创 JavaScript toFixed() Method

a built-in Javascript function to replace Math.floorhttp://www.w3schools.com/jsref/jsref_tofixed.asp

2011-09-29 09:59:11 66

原创 Dolphin 7 Members Only mode

add the codes below into dolphin/inc/design.inc.php Line133// Members Only - begin if(isMember()) { header( 'Content-type: text/html; charset=utf-8' ); $echo($oTemplate, 'page_' . $_page...

2011-09-22 11:07:12 177

Ajax codes for seabook

codes for seabook1. ajax test[code="java"]ajax test $(function(){ $("input").click(function(){ dom = $(this).parent().siblings(".data"); uid = $(this).pare...

2011-09-05 11:01:48 59

getRandom

[前端]飞妮莫属 21:01:53 请教一下function getRandom() {this.result = [];};getRandom.prototype.init = function(max,len,array){var len = len||1,array = array||[],//排除数组r = Math.floor(Math.random(...

2011-08-28 13:16:32 2347

原创 配置.htaccess进行目录密码保护

Do not forget to crypt the password.we could use plain password on windows.http://www.kxs.net/support/htaccess_pw.html============================================================================...

2011-08-13 22:58:45 193

reset joomla password

reset password to adminb879ab14d7714ea03e895b1020cbf30b:x9EldOFwGZ5Ou6albXI9VId8Xj6ou2Tewhich is generated by $pass = 'admin'; $salt = 'x9EldOFwGZ5Ou6albXI9VId8Xj6ou2Te'; echo md5($pass.$s...

2011-08-11 13:35:51 108

delete .svn folder

1. F3 find then delete2. Export with SVN client3 del.reg[code=""]Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folder...

2011-07-05 09:30:14 126

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除