Giter Club home page Giter Club logo

blog-deprecated's Introduction

vagusX's github stats

Top Langs

blog-deprecated's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blog-deprecated's Issues

some rules for redux

  • 尽量将 state local化(放到 React Component 内部),仅仅将必要的内容放到 Redux store 里面。尤其是犹豫时,那就放到组件内部。

Ubuntu 17.10 上使用 sogou 输入法

之前一直有一台载有 Ubuntu 的 PC 机,主要是处理自己的项目和业务需求,之前尝鲜升级到了 Ubuntu 17.10,再次经历 Ubuntu 每次升级后 sogou 输入法都不能使用的坑爹之处,之前的话,按照度娘上的教程设置下默认输入法就好了。但是这一次,貌似 Ubuntu 从 unity 切换到 gnome 了,之前的教程跑了一遍都没有解决我输入中文的问题。
怎么办?找了一圈,似乎网上没有什么人在使用 Ubuntu 17.10,也没有同类问题的解决方案,于是乎,只能用英文和大家交流,sigh。。。于是开始逐步弃用这台 PC。
但是这两天还是来了大的文档需求,所以硬着头皮开始继续使用 Ubuntu,在网上搜了一圈,看到度娘贴吧里面有几个说了这个问题,提到了一个 TopIcons Plus,于是我就下载了一个,但是下载完的我还是一脸懵逼的,因为我都没有找到开启这个插件的地方。
才发现,原来 gnome shell(也就是 gnome 桌面),是通过 web 端 来管理插件的,同时需要安装一个 chrome gnome shell integration extension 才能使用。
安装就绪,然而并没有卵用,依然无法正常使用 sogou 输入法,继续使用搜索引擎找了找,在平时压根不会看的 CSDN 博客上看到了一篇 解决ubuntu 17.10 fcitx无法使用,有点意思,试了一下,果然能解决我的问题。
核心思路如下:

  • 卸载并重新安装 fctix & sogou

具体可看原博文。
然而,貌似重启后并没有卵用,然后我将 fctix 设置成开机启动,解决问题。
写这个文章,只是为了吐槽下自己对 Ubuntu 的使用不是很熟悉,尤其是每一代 Ubuntu 貌似设置都不太一样,/ㄒ_ㄒ
本文中,提及多次度娘,不是打广告,也不是本人很 "low",就是想着这个 sogou 输入法的问题也算是特色国情问题,中文搜索引擎解决问题应该更快。
对了,貌似这次安装搜狗输入法在 vscode 里默认是繁体字,还要切换下,莫名其妙,问题是 chrome 下之前打出来的都是简体字。。。

sth about reactjs

Input autofocus in Reactjs

two ways

  • componentDidMount
componentDidMount: function() {
    if @props.focus
        this.refs.sampleInput.getDOMNode().focus();
}
  • HTML autofocus property
<input ... autoFocus={@props.focus} >

force to update component

delivery by key

import sample from '../sample';

sample data: this.props.data, key: this.props.data._id

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.