Xiao Peng

My personal blog moves to xiaopeng.me , blogs about design patterns will be synced to here.
  博客园 :: 首页 :: 联系 :: 订阅 订阅 :: 管理


共15页: 上一页 1 2 3 4 5 6 7 8 9 下一页 末页 


摘要: All The Cheat Sheets That A Web Developer Needs | Top Design Magazine - Web Design and Digital Content (tags: javascript html css jquery programming) ...阅读全文

posted @ 2011-02-17 17:01 勇敢的鸵鸟 阅读(16) 评论(0) 编辑


摘要: jasmine will create Suite before loading the report html. You code like:[javascript]var canvasDiv;canvasDiv = new Element('div', {'id': 'canvas'});canvasDiv.update('hello world');// the following make...阅读全文

posted @ 2011-02-16 17:41 勇敢的鸵鸟 阅读(59) 评论(0) 编辑

摘要: VPNCUP | 欢迎访问VPNCUP.COM,免费测试VPN服务,不限时,不限速,VPN杯具让网络从此不再杯具 (tags: free vpn gfw 翻墙) HTML5 Demos and Examples ...阅读全文

posted @ 2011-02-16 17:01 勇敢的鸵鸟 阅读(30) 评论(0) 编辑


摘要: http://stackoverflow.com/questions/980697/element-dispatchevent-is-not-a-function-js-error-caught-in-firebug-of-ff3-0I'm using jasmine for a rail project. Prototype and jQuery are both loaded by jasmi...阅读全文

posted @ 2011-02-15 17:56 勇敢的鸵鸟 阅读(134) 评论(0) 编辑


摘要: From: http://www.realgeek.com/forums/years-in-dates-showing-up-as-yy-469226.htmlI had a theory working that there may have been some conflict with my system regional settings. I had them set to China...阅读全文

posted @ 2011-02-14 11:36 勇敢的鸵鸟 阅读(18) 评论(0) 编辑


摘要: 1. baidu input method:http://mi.baidu.com2. kuaidialhttp://kuaidial.googlecode.com/svn/deb3. uchttp://uc.cn/cydia24. 360http://m.360.cn/cydia阅读全文

posted @ 2011-02-13 17:49 勇敢的鸵鸟 阅读(16) 评论(0) 编辑


摘要: from: http://www.brainjar.com/css/positioning/default.aspBox:1. Margins are always transparent.2. Background settings aplly to padding and content areas.3. The width and height of each box is equal to...阅读全文

posted @ 2011-02-11 14:59 勇敢的鸵鸟 阅读(44) 评论(0) 编辑


摘要: Today, after upgrade and re-jailbroke my iphone, when I try to ssh to it, I got some error message like this:[bash]The fingerprint for the RSA key sent by the remote host is5c:9b:16:56:a6:cd:11:10:3a:...阅读全文

posted @ 2011-02-09 19:34 勇敢的鸵鸟 阅读(120) 评论(0) 编辑

摘要: We have write a lot of ajax code with the help of jQuery or other helper library. Now let's see what a raw ajax code looks like![sourcecode language="html"]Call server-side function [/sourcecode]阅读全文

posted @ 2011-02-09 14:54 勇敢的鸵鸟 阅读(32) 评论(0) 编辑


摘要: On host[bash]$ cd ~$ sudo apt-get lxc$ sudo mkdir /var/local/cgroup$ sudo vi /etc/fstab# add this line:# cgroup /var/local/cgroup cgroup defaults 0 0$ sudo mount cgroup$ git clone https://github....阅读全文

posted @ 2011-01-31 11:45 勇敢的鸵鸟 阅读(82) 评论(0) 编辑

摘要: Enable passanger on control panel. Assume your public folder is depot.xiaopeng.me/public[bash]# git checkout your rails project$ git clone file:///home/pxiao/git-repos/depot.git$ rm -rf depot.xiaopeng...阅读全文

posted @ 2011-01-31 08:57 勇敢的鸵鸟 阅读(25) 评论(0) 编辑


摘要: This is to setup a developement environment for Ruby 1.87 and Rails 2.2.3 on Ubuntu 10.04 (Lucid).[sourcecode language="bash"]# make sure ubuntu is up to date$ sudo apt-get update$ sudo apt-get dist-u...阅读全文

posted @ 2011-01-30 22:23 勇敢的鸵鸟 阅读(28) 评论(0) 编辑

摘要: [sourcecode language="bash"]$ cd ~# create a dir for your repositories$ mkdir git-repos# create a dir for your project e.g. depot$ mkdir depot.git$ init the dir$ git --bare init$ cd ..# create a tmp f...阅读全文

posted @ 2011-01-30 17:34 勇敢的鸵鸟 阅读(114) 评论(0) 编辑

摘要: From:http://tedwise.com/2009/02/26/dark-pastels-theme-for-intellij-idea/Tested on idea10.I’ve been using the ported Vibrant Ink theme for IntelliJ IDEA for a while but got envious looking at the Dark ...阅读全文

posted @ 2011-01-30 15:48 勇敢的鸵鸟 阅读(116) 评论(0) 编辑


摘要: If you have had a rails project$ ruby script/consoleYou got something like this:Loading development environment (Rails 2.2.3)If not, try:gem list | grep 'rails'阅读全文

posted @ 2011-01-28 15:48 勇敢的鸵鸟 阅读(13) 评论(0) 编辑

摘要: I used the 'shift+h' and 'shift+l' for going back and forward heavily.Now see :help :map. It allows you to map keys to what you want. For example::map x :map c阅读全文

posted @ 2011-01-28 12:03 勇敢的鸵鸟 阅读(23) 评论(0) 编辑

摘要: The best way to stretch an image to fit the background of a page is to use the CSS 3 property, background-size: body { background: url(bgimage.jpg) no-repeat; background-size: 100%; } ...阅读全文

posted @ 2011-01-28 09:03 勇敢的鸵鸟 阅读(40) 评论(0) 编辑

摘要: =Hello===Hello there=====Hello there===# something# else阅读全文

posted @ 2011-01-28 08:47 勇敢的鸵鸟 阅读(31) 评论(0) 编辑


摘要: 按理说这三个词都不算新鲜了。本文主要是整理一下其他人对这几个概念的论述。 本文要回答的基本问题:IoC(和其他几个技术)到底解决什么问题? 历史 有很多术语名词,由于时代的变迁,其含义可能发生了变化或者人们忘记了当初引入这个名词或者技术的背景。我们简单回顾一些IoC及其相关术语和技术的背景,希望从中能够找到一些理解这些技术的线索。 目前可以在网上找到的最早的资料是1988年的Design ...阅读全文

posted @ 2011-01-27 21:38 勇敢的鸵鸟 阅读(123) 评论(0) 编辑

摘要: YTo4OntzOjk6IndpZGdldF9pZCI7czoyMDoid3lzaWphLW5sLTEzNjI0NzkwMDciO3M6NToibGlzdHMiO2E6MTp7aTowO3M6MToiMSI7fXM6MTA6Imxpc3RzX25hbWUiO2E6MTp7aToxO3M6MTM6Ik15IGZpcnN0IGxpc3QiO31zOjEyOiJhdXRvcmVnaXN0ZXIiO3M6...阅读全文

posted @ 2011-01-27 17:22 勇敢的鸵鸟 阅读(32) 评论(0) 编辑

共15页: 上一页 1 2 3 4 5 6 7 8 9 下一页 末页