11/19/19

Do not give up.

Do not give up.
Be happy.
Try and try and try.
Nothing can stop me to success.
I can do it.
Make money to get a better life.
My dream will come true.
Failure is the mother of success.

9/24/19

Sleep early and get up early, work hard for a better future. Today I work very slow, tomorrow I must do the most important thing first, only if I finished the most important work, then I can have time to do it best. Done is more useful then do better because I can never finish the work if I always want to do the best way.

12/9/14

stackoverflow forbidden asking solved

It was "You have reached your question limit:Sorry, we are no longer accepting questions from this account. See the Help Center to learn more.".
I asked people to help me here:http://www.reddit.com/r/stackoverflow/comments/2ldq1y/i_cant_ask_questions_any_more_on_stackoverflow/ and on IRC . But doesn't help much. So I created a new ID and vote the old account's questions up. Now the problem is solved:
"Wait! Some of your past questions have not been well-received, and you're in danger of being blocked from asking any more.
For help formulating a clear, useful question, see: How do I ask a good question?
Also, edit your previous questions to improve formatting and clarity."
I believe the best way to solve a problem is help myself, not depending on others.

10/7/14

Remove the 'WordPress.org' link from my 'Meta' list

Edited /wp-includes/default-widgets.php file at line 296:

$widget_ops = array('classname' => 'widget_meta', 'description' => __( "Login, RSS, &") );



Original code

  • RSS
  • '); ?>
  • RSS
  • '); ?>
  • WordPress.org
  • Edited version commented-out unwanted code
    
    
  • 10/6/14

    Direction

    My direction has changed from the right way. Nowadays mobile is the future. So do all my time on mibile, athough it's tired.

    10/5/14

    wordpress 禁用google字体

    最近国内网络控制,用wordpress制作网站应用到google字体的模板就会一直加载fonts.googleapis.com。网站会很慢,解决的办法就是将字体禁止或者本地。
    字体本地化
    新建google-font.css 放在\wp-includes\css目录中(附该css文件的内容如下)
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 300;
      src: local('Open Sans Light'), local('OpenSans-Light'), url(../fonts/google/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 400;
      src: local('Open Sans'), local('OpenSans'), url(../fonts/google/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 600;
      src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(../fonts/google/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: italic;
      font-weight: 300;
      src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(../fonts/google/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: italic;
      font-weight: 400;
      src: local('Open Sans Italic'), local('OpenSans-Italic'), url(../fonts/google/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff) format('woff');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: italic;
      font-weight: 600;
      src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(../fonts/google/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff');
    }
    修改 \wp-includes\script-loader.php 文件,找到
    $open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
    替换成
    $open_sans_font_url = "/wp-includes/css/google-font.css";
    
    
    禁止google字体加载
    在wp的后台插件里面搜索安装Disable Google Fonts这款插件后启用即可,如果不想安装插件,也可以使用代码版,在主题的functions.php里面加入下面的代码:
     
    //禁用Open Sans
    class Disable_Google_Fonts {
    public function __construct() {
    add_filter( 'gettext_with_context', array( $this, 'disable_open_sans' ), 888, 4 );
    }
    public function disable_open_sans( $translations, $text, $context, $domain ) {
    if ( 'Open Sans font: on or off' == $context && 'on' == $text ) {
    $translations = 'off';
    }
    return $translations;
    }
    }
    $disable_google_fonts = new Disable_Google_Fonts;

    10/4/14

    Think

    There are many cheats and malices in the world. I can't believe in too many guys. Feel sad for it.
    Now I have little money, I'm worried about it every time I think about it. Anyway, continue to do what I should do.

    Use One Email Address with Multiple Twitter Accounts

    There’s however a simple workaround that will let you use the same email address with all your Twitter handles – the only condition is that you should be using a Gmail or Google Apps email address.
    In Gmail, you can add a dot (.) anywhere in the username and all emails address to that new alias will still reach your mailbox. For instance, if your original email address is hello@gmail.com, any emails sent to he.llo@gmail.com or he.ll.o@gmail.com will land in your mailbox because Gmails ignores periods in the email username.
    And that’s what you can use to trick Twitter. Twitter will consider hello@gmail and he.llo@gmail as two separate and valid email addresses even though they point to the same Gmail Inbox.
    Update: Please do that note that you have to enable the catch-all option in your domain setting to use email aliases inside Google Apps. Thus it is a better option to use a free Gmail address for Twitter.
    Another Workaround
    When you open an account in Gmail, you automatically get another valid email address that uses the googlemail.com domain.
    So if you only have two handles on twitter, you can use the gmail.com address with one handle and the googlemail.com address with the second handle.

    10/3/14

    百度账号体系和谷歌的天壤之别

    百度的账号体系一片混乱, 相对于谷歌一个账号全网全google产品通行, 简直就是小学生对大学生的区别.
    百度不注重这种用户体验, 可能也和公司的管理文化有关, 各个部门各自为政, 在业绩压力下互相不全力合作.

    python -m SimpleHTTPServer (Start a http server by python)

    python -m SimpleHTTPServer
    bogon:_video apple$ python -m SimpleHTTPServer
    Serving HTTP on 0.0.0.0 port 8000 ...
    192.168.0.102 - - [04/Oct/2014 01:56:21] "GET / HTTP/1.1" 200 -
    192.168.0.102 - - [04/Oct/2014 01:56:22] code 404, message File not found
    192.168.0.102 - - [04/Oct/2014 01:56:22] "GET /favicon.ico HTTP/1.1" 404 -

    192.168.0.102 - - [04/Oct/2014 01:56:24] "GET /%E4%BD%A0%E8%AF%95%E8%BF%87%E5%8D%81%E4%B8%80%E9%83%BD%E5%9C%A8%E5%96%9D%E5%96%9C%E9%85%92%E5%90%97.mov HTTP/1.1" 200 -