摘要: Update Ubuntu Source list cd /etc/apt sudo cp sources.list sources.list.save sudo vi sources.list sudo apt-get update Be aware of your Ubuntu's version, my ubuntu is 14.04. so my source list is as fo... 阅读全文
posted @ 2016-02-25 16:45 luckysimple 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Item 22: Prefer Helper Classes Over Bookkeeping with Dictionaries and Tuples Avoid making dictionaries with values that are other dictionaries or long tuples; Use namedtuple for lightweight, immutabl... 阅读全文
posted @ 2016-02-02 10:23 luckysimple 阅读(338) 评论(0) 推荐(0) 编辑
摘要: Item 14: Prefer Exceptions to Returning None Functions that return None to indicate special meaning are error prone because None and other values (e.g., zero, the empty string) all evaluate to False ... 阅读全文
posted @ 2016-01-29 14:27 luckysimple 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for ... 阅读全文
posted @ 2016-01-26 17:11 luckysimple 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Item 1: Know Which Version of Python You're Using Two mayor versions of Python in active use: Python 2 and Python 3; Multiple popular runtime for Python: CPython, Jython, IronPython, PyPy, etc; Prefe... 阅读全文
posted @ 2016-01-24 22:01 luckysimple 阅读(190) 评论(0) 推荐(0) 编辑
摘要: A syslog server represents a central log monitoring point on a network, to which all kinds of devices including Linux or Windows servers, routers, switches or any other hosts can send their logs over ... 阅读全文
posted @ 2016-01-21 17:37 luckysimple 阅读(367) 评论(0) 推荐(0) 编辑
摘要: Leetcode 2: Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two nu... 阅读全文
posted @ 2016-01-14 12:30 luckysimple 阅读(130) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1: Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return in... 阅读全文
posted @ 2016-01-13 20:06 luckysimple 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Synergy is a great tool to share mouse and keyboard among windows, linux and osx. Be aware of some issues when configuring them. Synergy versions of both server and client must be the same. Add clien... 阅读全文
posted @ 2016-01-07 16:20 luckysimple 阅读(351) 评论(0) 推荐(0) 编辑
摘要: SSH keys are a way to identify trusted computers, without involving passwords. Most git servers choose SSH keys to authorize clients. Check for SSH keys check for existing SSH keys on your computer. $... 阅读全文
posted @ 2016-01-06 12:24 luckysimple 阅读(214) 评论(0) 推荐(0) 编辑