Ubuntu 17.04 shadowsocks-libev Shadowsocks-Qt5 firefox

前期准备

需要购买一台拥有 root 权限的 VPS

[Symeon Huang’s Blog](https://librehat.wordpress.com/2018/01/07/shadowsocks-qt-3-0/)
> For people who are not familiar with Shadowsocks, it is a lightweight secure SOCKS5 proxy initially developed in China to circumvent the great firewall. I’ve been developing and maintaining the Qt/C++ implementation of this protocol for quite some time. By protocol, it means you can mix and match different implementations (or so called ports in some context) of Shadowsocks. A popular setup is to use shadowsocks-libev as the server, while using the Android app or shadowsocks-windows, shadowsocks-qt5 as desktop clients.

[shadowsocks-libev#installation](https://github.com/shadowsocks/shadowsocks-libev#installation)

* [shadowsocks-搭建和优化(一)](https://diqiuzuiqiang.wordpress.com/2018/01/17/shadowsocks-搭建和优化(一)/)
“`sh
sudo apt-get install shadowsocks-libev
vim /etc/shadowsocks.json
“`

You can edit the `foxyproxy.json` and configure  `foxyproxy` automatically or you can configure it manually.

“`
{
“server”:”54.169.56.86″,
“port”:11194,
“password”:”qaz123″,
“method”:”aes-256-cfb”
}
~
“`
shadowsock 启动重启关闭
“`
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop
“`
客户端
`Shadowsocks-Qt5`

在Windows下配置并运行SS客户端软件后,Windows下的多数浏览器(Firefox除外)如IE,Chrome,360,搜狗,猎豹等就可以自动科学上网了。Firefox浏览器要安装插件才可以。
[Firefox 配合 GFWList 实现自动切换代理](https://github.com/Shadowsocks-Wiki/shadowsocks/blob/master/7-1-firefox-settings.md)

[how-to-use-your-proxy-service-with-firefox-and-foxyproxy-extension](https://help.getfoxyproxy.org/index.php/knowledge-base/how-to-use-your-proxy-service-with-firefox-and-foxyproxy-extension/)
`foxyproxy.json`
“`
{
“mode”: “disabled”,
“proxySettings”: [
{
“active”: true,
“title”: “Default”,
“notes”: “These are the settings that are used when no patterns match a URL.”,
“color”: “#0055E5”,
“type”: 5,
“whitePatterns”: [
{
“title”: “all URLs”,
“active”: true,
“pattern”: “*”,
“type”: 1,
“protocols”: 1
}
],
“blackPatterns”: [],
“id”: “k20d21508277536715”
}
],
“logging”: null
}
“`

Advertisements

Install google pinyin in Ubuntu 16.04

我以为 Ubuntu 17.04不是麒麟版的话又只能用英文输入法, 以前配置一个搜狗输入法累得半死。这个方法亲测有效。

Ubuntu 16.04 LTS安装sogou输入法详解(原创)

Dan Han's Blog

Install google pinyin in Ubuntu 16.04
1. Command line: sudo apt-get install fcitx-googlepinyin
2. System settings -> Language support -> Keyboard input method system, change to fcitx.
3. Log out log in
4. At top right, click the penguin icon -> Text entry setting
5. Click +
6. Search ‘Google’, find ‘Google Pinyin (Fcitx)’
7, Use ‘Ctrl+space’ to switch between input methods

View original post

Artificial Intelligence and the Future of Work

Human-in-the-loop

Lukas Biewald

Technology makes some types of jobs obsolete and creates other types of jobs — that’s been true since the stone age. While in the past, machines have replaced people in jobs that require physical labor, we’re increasingly seeing traditionally white collar jobs augmented by machines: financial analysts, online marketers, and financial reporters, just to name a few. Of course, these advances also create new jobs. The electronic computers that we know today, for example, replaced human beings performing the actual calculations, but in the process created all kinds of new types of work.

Artificial intelligence seems like it might work the same way, creating jobs for artificial intelligence researchers and slowly displacing all other kinds of knowledge work. And while this might be where we end up a century from now, the path to get there won’t quite look the way people think. We can see where we’re going from AI…

View original post 981 more words

Talk

surprise from IPython’s evolution

I watched the video and tried to write down what he said.  Maybe someone can help me improve it.

Q: You created IPython back in 2001, what problems were you solving
at that point?

A: Basically I was trying to switch away from using property tools to using
open tools and I want to simplify a lot of my workflows from many many
languages to use less, when I discovered Python, I realize it can replace
a lot of different tool which just one language can make it easier keep
kind of ?move workflow

Q: So you make your own things, right?
A: Yes, but what was missing in Python was a good interactive computing environment.
Python has a basic interactive shell, but doesn’t fit the kind of workflows
that needed in scientific computing.Or You want to look at script, you wanna look at
data, you wanna look at plots variables, you want change the code little bit, a
very expiatory workflow and so that being a graduate student looking for excuses
not to work on his dissertations and instead to do something more fun were the perfect
combination to start writing IPython.

Q: What surprise that you feel about IPython evolution?

A: I guess the facts precisely that something began as such a simple personal fix for
a problem in my own workflow has grown into such a large project. IPython was first
Python Program that I ever wrote and for the looks it’s going to be the last I have ever
write. Because it began as an afternoon hack and here we are at 13 years later,
and fully literature, so the fact that would be able to learn from that one use case
of a personal scientific workflow
and begins to abstract and abstract way and building extremely broad aspect tool
now serves other needs including education, publication, scientific computing at that
scale has been a really surprising and interesting path that something that was born as
?? Both and community sense. That community has been so eager to work with ?? and adopted
the projects really not my work but actually the product
of our entire community of people more talented that I am and who do all hard work.

How do IPython Notebook come about?
That was something that the current iteration that everyone uses is about our 6 times
attempt… That came from tools that existed that very widely used in scientific computing community. I was a heavy user of sistance?? Maple and Mathematica, both of which have notebooks like environments, the Mathematica once called notebooks, the Maple called work sheets, that combine the idea of having texts, mathematics, code and the results of the code all in one documents, and that’s a very natural for scientists. So from day one, when I
started the very first mini script that was IPython 001 which is about 250 lines of codes
are ready to have mentions of mathematics in it. And I was a heavy Maple and Mathematica user so we were after those ideas from early on. But neither of our technology, nor the abstractions,
nor our own understanding of our problems were ready in those early 5 prototypes were missed steps but along the way, we learned many many things, and eventually both our ??capitalizing of kind  essential ideas with the framework of the moral web with taking the bad notion and moving it over to web browser, with a lot of inspirations from project code sage, that build something in 2006 for mathematics, kind of took us to the moral??  notebook,… so it was a long road but the intention was there from the beginning, and in 2011, Brian Granger who is my Co PI in a lot of projects … was able to prototype  what became the current version over across the summer, joining the technology that was just came out online, like web sokate, like JQuery, like tornado and Z&Q, which had the time all very new, but they kind of fit perfectly in having tried So what appears like very new solution to many people is something we actually been work with and thought over 15 years.

The intention was there since the beginning as I said,But obviously it was too a big problem for me as a graduate thinking, I want something like that there was no I am gonna do, so the first cut terminal basic environment, but the first prototype
5 prototypes all of which dead ended
those dead ends were very productive, they showed us all the wrong decisions and all the things
we shouldn’t try to do. And also external technology advances the javascript were absolutely
critical the facts that tools like Gmail showed everyone that you could build highly responsive,
highly interactive environments in the web that
people would willing to use as data tools. All of the javascript technology behind made huge
difference because it was machine … was really small team to build something that exactly
production?? for many scientists.

How much programming do you feel that scientists need to know?

It varies quiet a bit depending on exactly what were doing, I think it’s important to know that
for scientists, programming has very
different flavors that adores software developers , programming is inertially exploratory, it’s
really about solving a question, it’s okay to write one scripts, and at the same time,
but scientists also need to learn how to
gradually understanding when they do need to abstract a little bit, when that data pattern
that data set going to be similar in other problems they should not be copied pasted
50 time but they should beginning moving a little bit functions and having a little
base finding a way.

Q: What you take on the notion of everyone should learn the code?

A: Why do we code? We code because we are trying to communicate with machine which does not have human
style natural intelligence how to accomplish task, and in addition I mean a dump machine, in coding
we have to
clarify to the point that dump machines can understand our thoughts process what it is we are going to do,
It means that we have to organize the process in a very precise and unambiguous way, we have to perhaps
abstract basics can be done
by using the reusable components etc, and that process of logical system organized abstract computational
thought that I think is a useful valuable skill in many context in life…

Airsickness

The first time to travel by air is very uncomfortable, similar feeling which I had in the playground, then I forget the lesson and did it again, It became a nightmare or a disaster moment for me.

  1. Technology. I keep telling myself, trust human technology, it also means you have faith in  your major, human did lift this nearly a hundred of tons thing, airplane,up to 10 KM of height. They have done it countless times, look,  people around you are all fine,  but it did little effect to ease my nerve.
  2. Professional. I met a very dedicated stewardess, she kept reminding others to fasten their safe belt right away when the plane is shaking and she was unable to stand firmly. Maybe it’s like anything else, she seldom feels under the water since she got enough training.Nevertheless, I dare to say when the real dangerous come, she will also do a excellent job, forgetting herself in bring service to others.
  3. Indescribable suffering. I Could hardly feel my hands, my heart seems will stop beating in no more ten seconds. It’s okay with the turbulence, but weightlessness can kill me, so horrible that I think I will faint right away. Every sound seems being amplify in my ear, I just feel so horrible that the struggling won’t last any longer since I’m losing conscience.

Children burst into screaming just for fun when the turbulence and feeling of weightlessness come while I was struggling to breathe. Many times I want to press the button to seek for help, but I was too nervous to do so. This kind of phenomenon must be rare, but it’s true.

Anyway, the mixed feeling is beyond words. Anyhow, thank god I survive. I think before I make sure my body can take it,  I won’t fly again.