闻心阁

一蓑烟雨看苍生,半壶浊酒笑红尘

Make Koala Works on Ubuntu

Koala is my favorite GUI tools to complie sass and less file, when I switch the OS from Windows 7 to Ubuntu, it not works again. Why?

First of all, I thought it's Ruby's error, maybe there is no Ruby in my system, and run the command:

ruby --version

it outputs

ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

so it's not Ruby's fault, and then google it I find the solution

32bit:

$ cd /lib/i386-linux-gnu/ or $cd /usr/lib/

64bit:

$ cd /lib/x86_64-linux-gnu/ or $cd /usr/lib64/

run the command

sudo ln -s libudev.so.1 libudev.so.0

it works :-)

VimWordpress - A New Plugin For Vim to Write Wordpress and Typecho

VimWordpress is new Plugin for using vim to write blog, it's simple and powerful.

more >>

CSS3 first-child not work

For some reason, I tried to use CSS3 selector :first-child, but it not works in my project.

more >>

Date.parse() method not work in IOS

Maybe it's a big bug that I had experienced recently, when I use JavaScript method Date.parse('2016-10-24 18:36'), two different outputs in Android and IOS. In Android it output the right timestamp which i need, but in IOS, it can not get the timestamp.

more >>

关于《尸语者》

最近一部热播剧叫法医秦明,看了一些简介,很是眼熟。细看之,原来是我之前追的尸语者拍成电视剧了。

我是一个没有多少耐心的人,而恐怖灵异类的小说是我比较钟爱的类型,无奈看的时候没有完结,为了避免自己天天惦记,看了几章就放下了,这次看了一下原来已经更新了5部了,可以一读。使用kindle一口气读下来,荡气回肠且意犹未尽。好玩的一个细节是,在第三部中把人物和之前蜘蛛写的十宗罪串联了起来。看到这人物了乱入,有点忍俊不禁。无论十宗罪还是尸语者,从中读出的最深的4个字就是:人性本恶。

电视剧不想去看了,实在不想去看主演那个死板的面孔,但小说绝对推荐。

Inject jQuery into Any Webpage

Even MVVM framework is more and more popular in the web front developments, but the strength of jQuery cannot be replaceable. Sometimes, we need the jQuery's useful APIs to achieve some complex actions, but many webpages give up jQuery, so some skills is needed to inject the jQuery into the webpages which had abandon the jQuery library.

more >>

ES6 Tips in Chrome (2016-08-08)

Nowadays ES6 is more and more popular in front end development, so I plan to learn and practice it via Chrome browser. Why is Chrome? Because it can support most of ES6 features(Nearly 97% until 2016-08-08), but I also find a few method that it can't support.

  1. .at() method
  2. .padStart() method
  3. .padEnd() method
  4. .values() method

If I find other features not support in Chrome, I would write it here again.

PHP Cross-domain Setting

In the previous article 《jQuery $.ajax Method Ignored the Undefined Values》, I send a request to the server's php file, maybe you would get a cross-domain error.

XMLHttpRequest cannot load http://127.0.0.1/jq-undefined.php?para1=1&para2=2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

more >>

Copyright © 2010-2017 闻心阁 Drive by Typecho & Lingonberry

返回顶部